]> git.ipfire.org Git - thirdparty/coreutils.git/commit
split: simplify SIGPIPE handling
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 19:42:16 +0000 (11:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 22:49:45 +0000 (14:49 -0800)
commit99fcde22ce8c6108781ca9d2bf7cd7286bdd1355
tree26da64cd5dfd342cd5ef0b4dc3a1a7ff536a5868
parentaa266f1b3dc4e12acdc46cc0f562adc03c2c0b8f
split: simplify SIGPIPE handling

Ignore and default SIGPIPE, rather than blocking and unblocking it.
* src/split.c (default_SIGPIPE):
New static var, replacing oldblocked and newblocked.
(create): Use it.
(main): Set it.
src/split.c