mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8078470: [Linux] Replace syscall use in os::fork_and_exec with glibc fork() and execve()
Reviewed-by: stuefe, dsamersoff, dcubed
This commit is contained in:
parent
971e022093
commit
5c859405b5
4 changed files with 144 additions and 26 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue