]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
posix_spawn: If an error is detected in the child process, reap the zombie.
authorjilles <jilles@FreeBSD.org>
Sun, 10 Jul 2011 14:20:11 +0000 (14:20 +0000)
committerjilles <jilles@FreeBSD.org>
Sun, 10 Jul 2011 14:20:11 +0000 (14:20 +0000)
commit3396d1eaffa995e1291d40431f4bbed3fc31df0d
treed191f37dde3c920c0593f86a64ae8000f3d83c89
parent49fd1cbb236fff2345c8fa5e255cc59c3db51714
posix_spawn: If an error is detected in the child process, reap the zombie.

Formerly, in this case an error was returned but the pid was also returned
to the application, requiring the application to use unspecified behaviour
(the returned pid in error situations) to avoid zombies.

Now, reap the zombie and do not return the pid.

MFC after: 2 weeks
lib/libc/gen/posix_spawn.c
tools/regression/lib/libc/gen/Makefile
tools/regression/lib/libc/gen/test-posix_spawn.c [new file with mode: 0644]