diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-06-25 03:38:18 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-06-25 03:38:18 +0000 |
commit | c7a96a4eb9ef6e65f32abe581653d98ef6460952 (patch) | |
tree | 0f64b2b83af6eca06ee2fa916294745d8fce074e /etc | |
parent | c918550c4880e79ba950cc6353dcba36ec5e94f2 (diff) |
Replace SIGCHLD/notify_pipe kludge with pselect.
Previously sshd's SIGCHLD handler would wake up select() by writing a
byte to notify_pipe. We can remove this by blocking SIGCHLD, checking
for child terminations then passing the original signal mask through
to pselect. This ensures that the pselect will immediately wake up if
a child terminates between wait()ing on them and the pselect.
In -portable, for platforms that do not have pselect the kludge is still
there but is hidden behind a pselect interface.
Based on other changes for bz#2158, ok djm@
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions