git: d58ca841529c - main - Fix zombie leak in test using pdfork()

Peter Holm <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm
Message-ID <[email protected]>
The branch main has been updated by pho:

URL: https://cgit.FreeBSD.org/src/commit/?id=d58ca841529c29fec4df90fc0cb93cc427f4f65d

commit d58ca841529c29fec4df90fc0cb93cc427f4f65d
Author:     Peter Holm <[email protected]>
AuthorDate: 2026-08-20 08:59:58 +0000
Commit:     Peter Holm <[email protected]>
CommitDate: 2026-08-20 08:59:58 +0000

    Fix zombie leak in test using pdfork()
---
 tools/test/stress2/misc/socketpair3.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/test/stress2/misc/socketpair3.sh b/tools/test/stress2/misc/socketpair3.sh
index d96719cc6e0a..716feb058de8 100755
--- a/tools/test/stress2/misc/socketpair3.sh
+++ b/tools/test/stress2/misc/socketpair3.sh
@@ -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");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.