Date: Wed, 18 Nov 2020 01:57:57 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251227] setpgid sometimes returns ESRCH instead of EACCES Message-ID: <bug-251227-227-jN450LDT61@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-251227-227@https.bugs.freebsd.org/bugzilla/> References: <bug-251227-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251227 --- Comment #1 from Conrad Meyer <cem@freebsd.org> --- > the unreaped child process remains present until the parent terminates (i.e. the referenced target pid does exist) I don't know if it's true that we consider zombie processes "to exist" in the sense of this manual page. In implementation, we don't — setpgid(2) uses pfind(9), which ignores zombie processes, instead of pfind_any(9), which can locate zombie processes. This is relatively common: e.g., there are 30 invocations of pfind() in the core kernel, but only 5 of pfind_any(). I'm not sure this behavior difference with Linux matters. Can you explain more about why you think this is a bug? -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251227-227-jN450LDT61>
