HomeFreeBSD

syslogd: Centralize operations into a kevent loop

Description

syslogd: Centralize operations into a kevent loop

Use kqueue(2) for socket I/O and signal notification. Previously,
select(2) and traditional signal handlers were being used.

This change centralizes all of the async notification delivery into a
single loop so future Capsicum sandboxing will be easier. It also
simplifies the code by removing boiler-plate cruft that comes with the
older interfaces.

Reviewed by: Slawa Olhovchenkov, markj, emaste
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41363

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:49 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41363: syslogd: Centralize operations into a kevent loop
Parents
rG3f8b49dd1af1: syslogd: Replace int with bool, where applicable
Branches
Unknown
Tags
Unknown