csplit: don't prematurely terminate cleanup (Bug#9076)
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jul 2011 23:03:41 +0000 (16:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jul 2011 23:03:57 +0000 (16:03 -0700)
commit837e1f55196f826b92d660808f594fde36651655
tree8981920bd1d1067e7e3a4f24516644241a52961b
parent750fadd5d3a7b053e5a78c9b5144fd36fa64f198
csplit: don't prematurely terminate cleanup (Bug#9076)

* src/csplit.c (interrupt_handler): Reset signal to SIG_DFL
after deleting the files, so that a second interrupt won't
prematurely terminate cleanup.
(main): Don't use SA_NODEFER | SA_RESETHAND, as that might
allow premature termination of cleanup.  Also, this ports better
to platforms like NonStop, which don't ahve SA_RESETHAND.
src/csplit.c