Commit af2967a
fix subscriber error detection
Summary:
Use `select!` to detect if _either_ the tcpreceiver or subscriber tasks unexpectedly finishes. Previously we would first wait for the tcpreceiver task, which would block forever even if the workspacesubscriber task had exitted unexpectedly.
I noticed my scm_daemon was not updating subscriptions properly when I changed workspace. The log file suggested the subscriber wasn't running at all, and this is my best guess how that can happen.
Reviewed By: zzl0
Differential Revision: D68033878
fbshipit-source-id: 3933b7392d6e95ded8c9f66c29359123b380fd2a1 parent 134a06d commit af2967a
1 file changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments