Commit cca9d9b
committed
vsdebug: Fix double-closing listener FDs
While working on D88186184, I noticed that we were closing the listener FDs
for the vsdebug server in both `waitForConnection` and `listenForClientConnection`.
It does not seem to be causing issues in local testing but it could be a
problem if the FD gets reused in a different thread in the meantime.
`waitForConnection` is only called at the end of
`listenForClientConnection` so closing the FDs only at the end of
`listenForClientConnection` should be fine.1 parent c7a529e commit cca9d9b
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 577 | | |
582 | 578 | | |
583 | 579 | | |
| |||
0 commit comments