]> git.proxmox.com Git - proxmox.git/commit
tools: daemon: add a default signalfd helper
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Mar 2019 10:50:10 +0000 (11:50 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Mar 2019 11:29:18 +0000 (12:29 +0100)
commit66c138a51a8cce8c09fda8578605794f80578272
tree58f13e3e3dc99b30e8470aa507905597cef67d34
parent946995d98488594eed4105b04fc179a48941a152
tools: daemon: add a default signalfd helper

Proxy and daemon for now just want to handle reload via
`SIGHUP`, so provide a helper creating the signalfd stream
doing that - this is simply a filtered stream which passes
the remaining signals through, so it can be used exactly
like the signalfd stream could before to add more signals.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/daemon.rs