diff options
author | Jim Meyering <jim@meyering.net> | 2004-04-21 12:57:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-04-21 12:57:33 +0000 |
commit | 8ab60c41be82dceeac0a0d8fec2842c3773ef7a5 (patch) | |
tree | bfa50b5abdb99033e2dde9302a204d5be59e12e1 /ChangeLog | |
parent | eae1b7f862ae45e7898304cd81332f12bd8fbdf7 (diff) | |
download | coreutils-8ab60c41be82dceeac0a0d8fec2842c3773ef7a5.tar.xz |
- csplit sometimes failed to remove files when interrupted.
- csplit didn't clean up if two signals arrived nearly simultaneously.
(sigprocmask, sigset_t) [!defined SA_NOCLDSTOP]: Define.
(filename_space, prefix, suffix, digits, files_created, remove_files): Now volatile.
(caught_signals): New var.
(cleanup): Block signals while deleting all files.
(cleanup_fatal, handle_line_error, regexp_error):
Mark with ATTRIBUTE_NORETURN.
(create_output_file, close_output_file, interrupt_handler):
Block signals while changing the number of output files,
to fix some race conditions.
(delete_all_files): Do nothing if remove_files is zero.
Clear files_created.
(main): Don't mess with signals until after argument processing is done.
(main): Rewrite signal-catching code to make it
similar to other coreutils programs. When processing signals,
block all signals that we catch, but do not block signals that we
don't catch. Avoid problems with unsigned int warnings.
(interrupt_handler): Use void, not (obsolete) RETSIGTYPE.
(interrupt_handler) [defined SA_NOCLDSTOP]:
Use simpler "signal (sig, SIG_DFL)" rather than sigaction equivalent.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions