HomeFreeBSD

syslogd: Do not reap child processes

Description

syslogd: Do not reap child processes

Use the SA_NOCLDWAIT sigaction() flag to disable the creation of
zombie processes. This leaves no reason to wait() on children, so
remove the reaping routine.

Previously, deadq entries were removed in reapchild(). Move deadq
removal into markit() after SIGKILL is sent.

Reviewed by: markj
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41415

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:50 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41415: syslogd: Do not reap child processes
Parents
rG95381c0139d6: syslogd: Use process descriptors
Branches
Unknown
Tags
Unknown