Unix daemons typically support the convention of reloading their configuration file by receiving a SIGHUP signal.
Rather than use one of the signal system calls, I'd like to take this as an opportunity to learn and implement kqueue(2). It won't be as portable—won't work on Linux—but it should be cleaner, more readable, and more reliable than using the self-pipe trick.
Unix daemons typically support the convention of reloading their configuration file by receiving a
SIGHUP
signal.Rather than use one of the signal system calls, I'd like to take this as an opportunity to learn and implement
kqueue(2)
. It won't be as portable—won't work on Linux—but it should be cleaner, more readable, and more reliable than using the self-pipe trick.