Commit 3ca4f3e
committed
wait until runsv is reading from supervise/ok
If the supervise/ok pipe already exists on disk before runsv has
started, then existence check here is not enough.
Since runsv opens the pipe for reading as part of its startup, we can
open it for writing which will block until runsv has called open.
A version of this fix has been running in one of our internal projects
for some time.
Signed-off-by: Steven Danna <[email protected]>1 parent 37290be commit 3ca4f3e
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
0 commit comments