diff options
author | Ihor Antonov <ihor@antonovs.family> | 2023-04-14 05:10:29 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2023-04-14 05:12:21 +0000 |
commit | 8935a3993219be76c7ea03e9ad4509657d08af6c (patch) | |
tree | 31d7c53c9ca6e7e5aaa4751faecb477df4744820 /sys/nfsclient/nfsargs.h | |
parent | ec671f4980437008b0119c6367816083e15fa503 (diff) | |
download | src-8935a3993219be76c7ea03e9ad4509657d08af6c.tar.gz src-8935a3993219be76c7ea03e9ad4509657d08af6c.zip |
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
Diffstat (limited to 'sys/nfsclient/nfsargs.h')
0 files changed, 0 insertions, 0 deletions