Commit dd7d013
committed
mitogen: Kill (hung) bootstrap processes after 5 second timeout
Since using select.select() in the first stage (to handle an obscure corner
case where stdin appears to be non-blocking) there has been a report of first
stage processes running for ever in an infinite loop - reading 0 bytes from
stdin.
This attempts to do an end run around that problem by aborting if the
bootstrap takes longer than a few seconds for *any* reason. Existing retry
logic should deal with it as before.
5 seconds is a best guess at a suitable timeout.1 parent bd0eed3 commit dd7d013
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1442 | 1446 | | |
1443 | 1447 | | |
1444 | 1448 | | |
| |||
1480 | 1484 | | |
1481 | 1485 | | |
1482 | 1486 | | |
1483 | | - | |
| 1487 | + | |
1484 | 1488 | | |
1485 | 1489 | | |
1486 | 1490 | | |
1487 | | - | |
| 1491 | + | |
1488 | 1492 | | |
1489 | 1493 | | |
1490 | 1494 | | |
| |||
0 commit comments