mario-campos / dyndnsd

Dynamic DNS Daemon for OpenBSD
https://mario-campos.github.io/software/dyndnsd
BSD 3-Clause "New" or "Revised" License
19 stars 0 forks source link

Add config-file-reload support through SIGHUP #1

Closed mario-campos closed 7 years ago

mario-campos commented 7 years ago

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.

mario-campos commented 7 years ago

Implemented, but getting an error:

dyndnsd[39924]: SIGHUP received; reloading configuration
input in flex scanner failed