Commit 588ce01
committed
fix: address review — filter ESRCH, hoist cleanup registration
- PPID poll: only exit on ESRCH (process gone), ignore EPERM (process
alive but different UID — setuid, Linux security modules, etc.)
- Hoist stopAllWatchers + exit/signal listeners to before stdin/onclose
handlers, closing the race window where process.exit() could fire
during initProject() before the cleanup listener was registered1 parent 0704a0b commit 588ce01
1 file changed
+27
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
1622 | | - | |
1623 | | - | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1624 | 1627 | | |
1625 | 1628 | | |
1626 | 1629 | | |
| |||
1629 | 1632 | | |
1630 | 1633 | | |
1631 | 1634 | | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1632 | 1657 | | |
1633 | 1658 | | |
1634 | 1659 | | |
| |||
1657 | 1682 | | |
1658 | 1683 | | |
1659 | 1684 | | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | 1685 | | |
1682 | 1686 | | |
1683 | 1687 | | |
| |||
0 commit comments