8234264: Incorrect 8047434 JDK 8 backport in 8219677

Tue, 17 Dec 2019 17:25:50 +0000

author
phh
date
Tue, 17 Dec 2019 17:25:50 +0000
changeset 9813
567ee384afe3
parent 9812
a0b9b4d15694
child 9814
944634dd98a4

8234264: Incorrect 8047434 JDK 8 backport in 8219677
Summary: Reverse uses of fork_and_exec() second argument in vError.cpp.
Reviewed-by: sgehwolf, simonis

src/share/vm/utilities/vmError.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/utilities/vmError.cpp	Tue Dec 17 07:03:22 2019 +0000
     1.2 +++ b/src/share/vm/utilities/vmError.cpp	Tue Dec 17 17:25:50 2019 +0000
     1.3 @@ -1060,7 +1060,7 @@
     1.4        out.print_raw   (cmd);
     1.5        out.print_raw_cr("\" ...");
     1.6  
     1.7 -      if (os::fork_and_exec(cmd, true) < 0) {
     1.8 +      if (os::fork_and_exec(cmd) < 0) {
     1.9          out.print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
    1.10        }
    1.11      }
    1.12 @@ -1147,7 +1147,7 @@
    1.13  #endif
    1.14      tty->print_cr("\"%s\"...", cmd);
    1.15  
    1.16 -    if (os::fork_and_exec(cmd) < 0) {
    1.17 +    if (os::fork_and_exec(cmd, true) < 0) {
    1.18        tty->print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
    1.19      }
    1.20    }

mercurial