mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
libcasper: reap zombies without requiring waitpid(2)
Reported and tested by: bapt Reviewed by: bapt, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D59348
This commit is contained in:
1 parent
429cb53701
commit
1a296762b3
2 files changed
+2
-2
No files matched your search
@@ -95,7 +95,7 @@ cap_init(void)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
pid = pdfork(&pfd, 0);
|
||||
pid = pdfork(&pfd, PD_NOWAITPID);
|
||||
if (pid == 0) {
|
||||
/* Child. */
|
||||
close(sock[0]);
|
||||
|
||||
@@ -149,7 +149,7 @@ zygote_main(int *sockp)
|
||||
error = errno;
|
||||
goto send;
|
||||
}
|
||||
pid = pdfork(&procfd, 0);
|
||||
pid = pdfork(&procfd, PD_NOWAITPID);
|
||||
switch (pid) {
|
||||
case -1:
|
||||
/* Failure. */
|
||||
|
||||
Reference in new issue
Block a user