src/os/solaris/vm/os_solaris.cpp

changeset 9637
eef07cd490d4
parent 9448
73d689add964
parent 9620
97d605522fcb
child 9703
2fdf635bcf28
     1.1 --- a/src/os/solaris/vm/os_solaris.cpp	Wed Jul 03 20:04:13 2019 +0800
     1.2 +++ b/src/os/solaris/vm/os_solaris.cpp	Wed Jul 03 20:42:37 2019 +0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -6153,7 +6153,7 @@
    1.11  // or -1 on failure (e.g. can't fork a new process).
    1.12  // Unlike system(), this function can be called from signal handler. It
    1.13  // doesn't block SIGINT et al.
    1.14 -int os::fork_and_exec(char* cmd) {
    1.15 +int os::fork_and_exec(char* cmd, bool use_vfork_if_available) {
    1.16    char * argv[4];
    1.17    argv[0] = (char *)"sh";
    1.18    argv[1] = (char *)"-c";

mercurial