[Bug 251227] setpgid sometimes returns ESRCH instead of EACCES
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 18 01:57:57 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251227
--- Comment #1 from Conrad Meyer <cem at 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.
More information about the freebsd-bugs
mailing list