Commit 230d8ead by Tom Tromey Committed by Tom Tromey

PR libgcj/23763. From aeby@graeff.com.

	* java/lang/natPosixProcess.cc (nativeSpawn): Unblock SIGCHLD
	before exec.

From-SVN: r106655
parent 90b11b98
2005-11-08 Tom Tromey <tromey@redhat.com>
PR libgcj/23763. From aeby@graeff.com.
* java/lang/natPosixProcess.cc (nativeSpawn): Unblock SIGCHLD
before exec.
2005-11-08 Mark Wielaard <mark@klomp.org> 2005-11-08 Mark Wielaard <mark@klomp.org>
* scripts/makemake.tcl: Set package gnu/javax/sound/midi to bc. * scripts/makemake.tcl: Set package gnu/javax/sound/midi to bc.
......
// natPosixProcess.cc - Native side of POSIX process code. // natPosixProcess.cc - Native side of POSIX process code.
/* Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 Free Software Foundation /* Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -345,6 +345,12 @@ java::lang::ConcreteProcess::nativeSpawn () ...@@ -345,6 +345,12 @@ java::lang::ConcreteProcess::nativeSpawn ()
} }
} }
// Make sure that SIGCHLD is unblocked for the new process.
sigset_t mask;
sigemptyset (&mask);
sigaddset (&mask, SIGCHLD);
sigprocmask (SIG_UNBLOCK, &mask, NULL);
execvp (args[0], args); execvp (args[0], args);
// Send the parent notification that the exec failed. // Send the parent notification that the exec failed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment