diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:44:42 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:44:42 -0600 |
| commit | 270ac6676c05470223c5fc09fb3230b97acfbe2b (patch) | |
| tree | fe3830363bc1eabf12f7d656ca62b33bc3d4a9d5 /bench/probes/git@git.abendless.com:/srv/git | |
| parent | de0d26a1e6b2916996867c4c11f5146302720587 (diff) | |
| download | zash-270ac6676c05470223c5fc09fb3230b97acfbe2b.tar.gz | |
fix(signal): install SIG_DFL with sigaction, not signal()
Two places reset a signal to its default: main() for an inherited SIGCHLD
(waitpid() fails with ECHILD when a parent left it ignored) and the
pipeline child that writes a long builtin output and must die on SIGPIPE.
Both went through signal(), which differs from sigaction() in restart and
mask behaviour; they now share trap.c's set_handler() through a small
trap_sig_default(), the function trap_reset() already uses.
Diffstat (limited to 'bench/probes/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
