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)
Nov 27 2024, 8:50 AM
Unknown Object (File)
Nov 27 2024, 6:45 AM
Unknown Object (File)
Nov 7 2024, 4:37 AM
Unknown Object (File)
Nov 7 2024, 2:48 AM
Unknown Object (File)
Oct 21 2024, 5:25 AM
Unknown Object (File)
Oct 21 2024, 5:25 AM
Unknown Object (File)
Oct 21 2024, 5:25 AM
Unknown Object (File)
Oct 21 2024, 3:46 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.