Closed nelhage-stripe closed 7 years ago
If we fork, it's important that the child and parent don't share a self-read pipe, since if they do, they risk stealing each others' events.
fork
Check the PID and re-create the pipe if it's changed. This is theoretically subject to PID-wraparound issues, but should work well enough.
r? @andrew-stripe
This has passed four runs of the full pay-server CI suite now on a branch.
pay-server
:+1:
Can you add a comment about why we're doing the PID check?
If we
fork
, it's important that the child and parent don't share a self-read pipe, since if they do, they risk stealing each others' events.Check the PID and re-create the pipe if it's changed. This is theoretically subject to PID-wraparound issues, but should work well enough.
r? @andrew-stripe