diff -r 9c84227836d4 -r 101c2b6eacbe src/hotspot/share/utilities/vmError.cpp --- a/src/hotspot/share/utilities/vmError.cpp Fri Oct 12 10:58:06 2018 +0200 +++ b/src/hotspot/share/utilities/vmError.cpp Tue Oct 09 16:08:07 2018 +0530 @@ -1565,7 +1565,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 (%s=%d)", os::strerror(errno), os::errno_name(errno), errno); }