Bug #431: Fix signal handler

The signal handler implementation called async-signal-unsafe functions.
Corresponding notifications are handled by the interface "sigwaitinfo"
in a separate thread now.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Merge pull request #434 from elfring/signal_handler_correction

Bug #431: Fix signal handler