mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Fix zombie leak in test using pdfork()
This commit is contained in:
1 parent
8eb77a5aab
commit
d58ca84152
1 file changed
+1
-1
@@ -64,7 +64,7 @@ int main(void)
|
||||
if (socketpair(PF_UNIX, SOCK_STREAM, 0, sock) < 0)
|
||||
err(1, "socketpair");
|
||||
|
||||
pid = pdfork(&child_fd, PD_CLOEXEC);
|
||||
pid = pdfork(&child_fd, PD_CLOEXEC | PD_NOWAITPID);
|
||||
if (pid < 0)
|
||||
err(1, "pdfork");
|
||||
|
||||
|
||||
Reference in new issue
Block a user