Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15962
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: "wait" loses signals |
| Date | 2020-02-24 11:23 -0500 |
| Message-ID | <mailman.1500.1582561435.2412.bug-bash@gnu.org> (permalink) |
| References | (6 earlier) <00620c20-19ea-e71e-dc1b-926847901f82@redhat.com> <25750.1582534783@jinx.noi.kre.to> <448.1582546845@jinx.noi.kre.to> <07d1441d41280e6f95352222048d6485.squirrel@dancol.org> <24423cbe-97f0-8d75-c926-fad6f6ad339d@case.edu> |
On 2/24/20 7:58 AM, Daniel Colascione wrote: > No, it's not that much trouble to fix the bug. The techniques for fixing > this kind of signal race are well-known. In particular, instead of > waitpid, you use a self-pipe and signal the pipe in the signal handler, > and you have a signal handler for SIGCHLD. You've just substituted a real IPC mechanism (pipes) for the one people are trying to make signals into. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: "wait" loses signals Chet Ramey <chet.ramey@case.edu> - 2020-02-24 11:23 -0500
csiph-web