]> git.ipfire.org Git - thirdparty/coreutils.git/commit
csplit: prefer sigaction over signal
authorEric Blake <ebb9@byu.net>
Tue, 14 Oct 2008 04:04:51 +0000 (22:04 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 16 Oct 2008 12:20:50 +0000 (06:20 -0600)
commitddc409b59e57ac0dce72eda1e532c5224b4205ab
tree6bf1e8eb1a850156b401569378b944c59bf4c144
parent7eb3aab88bc64ded2071673700439ba13c75d21e
csplit: prefer sigaction over signal

* bootstrap.conf (gnulib_modules): Import sigaction.
* src/csplit.c (sigprocmask, siginterrupt) [SA_NOCLDSTOP]: Delete
workarounds.
(interrupt_handler, main): Drop use of signal.  Rely on sigaction
to block fatal signal during cleanup, and to restore it to default
in case of nested signals.
bootstrap.conf
src/csplit.c