freebsd-dev/usr.sbin/daemon
Ihor Antonov 8935a39932 daemon: use kqueue for all events
Refactor daemon to use kqueue/kevent instead of signals.

This changes allows to simplify the code in several ways:
- the execution flow is now linear, no async events.
- several variables became redundant and got removed.
- all event handling is now concentrated inside of the event loop, which
  makes code reading and comprehension easier.
- new kqueuex(2) call is used for CLOEXEC, but maintained closing the
  kq fd prior to execve() to ease later MFC

No UX/API changes are intended.

Reviewed by:	kevans
Pull Request:	https://github.com/freebsd/freebsd-src/pull/701
2023-04-14 00:12:21 -05:00
..
tests daemon: add some basic tests 2021-05-03 09:55:40 -06:00
daemon.8 daemon: add long_opts 2023-02-09 22:36:07 -06:00
daemon.c daemon: use kqueue for all events 2023-04-14 00:12:21 -05:00
Makefile daemon: add some basic tests 2021-05-03 09:55:40 -06:00
Makefile.depend