This patch adds support for exporting the signalfd_siginfo struct read
from the signal fd descriptor on signals. This allows watcher callbacks
to, e.g., figure out who sent a signal. See signalfd(2) for details on
struct signalfd_siginfo.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The __attribute__ ((unused)) is useful sometimes to declare variables as
intended to be unused, e.g. in callback functions. However, they tend
to clutter up the code making hard to read. We therefore remove all
uses of it and instead set -Wno-unused-parameter.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>