Commit 59575a2
committed
Fix race of SIG{CHLD} handler setup
The `SIG{CHLD}` must be setup before we fork().
Otherwise there is a small risk of a race, that the fork already exited
before the SIG{CHLD} was set and we end up in a `$p->is_running()`
endless loop.1 parent b6a057e commit 59575a2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | | - | |
341 | | - | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
0 commit comments