tools: Remove signalfd() use
authorNiclas Zeising <zeising@daemonic.se>
Mon, 27 Jul 2020 18:27:43 +0000 (20:27 +0200)
committerNiclas Zeising <zeising@daemonic.se>
Fri, 14 Aug 2020 15:50:56 +0000 (17:50 +0200)
commitcca90938874baaa5bd29d6406e141e49d6bf12a6
tree4a6c2c8a46a872b3635311870f04e60a76541b94
parent7ce82709aa43e7a787dba95463e88662cb4688ce
tools: Remove signalfd() use

Remove signalfd() use from the mouse-dpi-tool and touchpad-edge-detector
tools, in favor of using plain old signals.
FreeBSD does not have signalfd() without pulling in external libraries,
and with this change these tools can be compiled on FreeBSD.
Instead of providing two implementations, one using signalfd() and one
using signal(), just use the signal() implementation everywhere as it is
more portable.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
tools/mouse-dpi-tool.c
tools/touchpad-edge-detector.c