Commit 0a42245
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 0e594e0 commit 0a42245
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 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 578 | | |
583 | 579 | | |
584 | 580 | | |
| |||
0 commit comments