]> git.tuebingen.mpg.de Git - paraslash.git/commit
signal: Switch from signal() to sigaction.
authorAndre Noll <maan@systemlinux.org>
Mon, 6 Apr 2009 15:45:44 +0000 (17:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 6 Apr 2009 15:45:44 +0000 (17:45 +0200)
commitd6598752ab09b188178f1891c47efdf97fbc0bac
tree9a1c6eaf068ce200958b51bb5ab77e6c0caf2bea
parent35f9051506345255c7ed3c076b7df5f3b7d26039
signal: Switch from signal() to sigaction.

Use of signal() should be avoided because the behavior of signal() varies
across Unix versions, and has also varied historically across different
versions of Linux.

This patch rewrites para_install_sighandler so that it calls sigaction()
instead of signal(). The implementation is taken from good old APUE.

There are a couple of other users of signal() in the paraslash code. Most
of which are OK because they use signal() only to ignore/reset a signal which
happens to be the only portable use of signal(). All other users of signal()
have to be converted in subsequent patches.
signal.c