This commit is contained in:
Jesper Wilhelmsson 2015-05-21 21:17:56 +02:00
commit 25c41c6094
25 changed files with 733 additions and 102 deletions

View file

@ -1062,7 +1062,9 @@ void VMError::report_and_die() {
out.print_raw (cmd);
out.print_raw_cr("\" ...");
os::fork_and_exec(cmd);
if (os::fork_and_exec(cmd) < 0) {
out.print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
}
}
// done with OnError
@ -1147,7 +1149,9 @@ void VM_ReportJavaOutOfMemory::doit() {
#endif
tty->print_cr("\"%s\"...", cmd);
os::fork_and_exec(cmd);
if (os::fork_and_exec(cmd) < 0) {
tty->print_cr("os::fork_and_exec failed: %s (%d)", strerror(errno), errno);
}
}
}