PATCH: waitpid in natPosixProcess.cc
Casey Marshall
csm@gnu.org
Wed Apr 21 00:18:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Attached is a simple patch that invokes waitpid if either the process
is destroy()ed or the C call to exec() fails.
This prevents Runtime.exec from spawning zombie processes if the given
command cannot be found, or if the process is killed. I wasn't sure if
it was appropriate to call waitFor instead, but (AFAIK) calling
waitpid in these two spots is safe.
- --
Casey Marshall || csm@gnu.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQFAhbVegAuWMgRGsWsRAqMgAJwKz3hlZCEWxi+3YYjl/6Xpv941bwCeOq3G
dCSvFPKz06RDpr43ZOTz2NQ=
=4Ojo
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: natPosixProcess.patch
Type: text/x-patch
Size: 695 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040421/7c7310d2/attachment.bin>
More information about the Java-patches
mailing list