Fix zombie leak in test using pdfork()

This commit is contained in:
Peter Holm committed 2026-08-20 10:59:58 +02:00
1 parent 8eb77a5aab
commit d58ca84152
1 file changed
+1 -1
+1 -1
View File
@@ -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");