Repository navigation
Commit 1cae508
committed
test(ssh): zombie-reap launch test no longer races the shell
The test killed the background child as soon as sh printed its pid. If the
kill landed before sh exec'd, dash's SIGCHLD handling reaped the child, so
no zombie was left and ps printed nothing.
Kill the child only after sh has exec'd into node, which never reaps an
inherited child, and print its pid once SIGCHLD confirms it is a zombie.1 parent 81493ef commit 1cae508
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1213 | 1216 | | |
1214 | | - | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1215 | 1228 | | |
1216 | 1229 | | |
1217 | 1230 | | |
1218 | 1231 | | |
1219 | 1232 | | |
1220 | 1233 | | |
1221 | | - | |
1222 | 1234 | | |
1223 | 1235 | | |
1224 | 1236 | | |
| |||
0 commit comments