HomeFreeBSD

daemon: EINTR from kevent(2) is not a fatal error

Description

daemon: EINTR from kevent(2) is not a fatal error

Simply resume waiting for events rather than exiting if we took a signal
here.

This at least fixes running programs under daemon(8) in the face of
suspend/resume, which I suspect hits us with a spurious EINTR rather
than a signal anyways.

Reported and tested by: manu
Fixes: 8935a3993219b ("daemon: use kqueue for all events")

(cherry picked from commit 494e7dfdbe6ecfe572228ed39f5c794954da068c)

Details

Provenance
kevansAuthored on May 5 2023, 3:12 PM
desCommitted on Dec 13 2023, 4:21 PM
Parents
rGb64f569e5c05: daemon: use kqueue for all events
Branches
Unknown
Tags
Unknown