]> git.tue.mpg.de Git - paraslash.git/commit
signal: Restore errno on exit from signal handler.
authorAndre Noll <maan@systemlinux.org>
Sat, 9 Feb 2013 18:29:14 +0000 (19:29 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 9 Feb 2013 18:29:25 +0000 (19:29 +0100)
commit76f9e57d909a53d30a4f8fe5e924683fa9b7c0d5
treef98e59eb220a9ed0a4feb874aa71bc99f1f7d8fd
parentab0ccdfcabd85453d155f913a8024f0be38e427e
signal: Restore errno on exit from signal handler.

This probably is not necessary since generic_signal_handler() calls
exit(3) if the write to the signal pipe fails. However, nobody is
going to stop write(2) from setting errno also on success, so let's
play safe and always restore its value on exit.
signal.c