Page MenuHomeFreeBSD

syslogd: Ignore signals in sigcatch[]
ClosedPublic

Authored by jfree on Aug 12 2023, 4:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 5:25 AM
Unknown Object (File)
Mon, Oct 21, 5:25 AM
Unknown Object (File)
Mon, Oct 21, 5:25 AM
Unknown Object (File)
Mon, Oct 21, 3:46 AM
Unknown Object (File)
Fri, Oct 18, 11:01 PM
Unknown Object (File)
Sep 16 2024, 3:23 PM
Unknown Object (File)
Sep 16 2024, 9:53 AM
Unknown Object (File)
Sep 15 2024, 4:40 AM
Subscribers

Details

Summary
Instead of blocking signals in sigcatch[], just ignore them. This frees
up some space on the proc's sigqueue.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

There is some code elsewhere in syslogd.c which unblocks signals in a child process. Is it still correct?

  • Set signal handler to SIG_DFL for signals in sigaction[] upon fork()
  • Add comment explaining how syslogd handles child process reaping
This revision is now accepted and ready to land.Aug 16 2023, 8:49 PM
This revision was automatically updated to reflect the committed changes.