changeset 10590:567ee384afe3

8234264: Incorrect 8047434 JDK 8 backport in 8219677 Summary: Reverse uses of fork_and_exec() second argument in vError.cpp. Reviewed-by: sgehwolf, simonis
author phh
date Tue, 17 Dec 2019 17:25:50 +0000
parents a0b9b4d15694
children 944634dd98a4
files src/share/vm/utilities/vmError.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/utilities/vmError.cpp	Tue Dec 17 07:03:22 2019 +0000
+++ b/src/share/vm/utilities/vmError.cpp	Tue Dec 17 17:25:50 2019 +0000
@@ -1060,7 +1060,7 @@
       out.print_raw   (cmd);
       out.print_raw_cr("\" ...");
 
-      if (os::fork_and_exec(cmd, true) < 0) {
+      if (os::fork_and_exec(cmd) < 0) {
         out.print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
       }
     }
@@ -1147,7 +1147,7 @@
 #endif
     tty->print_cr("\"%s\"...", cmd);
 
-    if (os::fork_and_exec(cmd) < 0) {
+    if (os::fork_and_exec(cmd, true) < 0) {
       tty->print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
     }
   }