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:
Konstantin Belousov committed 2026-09-04 05:27:09 +03:00
1 parent 429cb53701
commit 1a296762b3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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]);
+1 -1
View File
@@ -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. */