We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad792e2 commit 85a1be8Copy full SHA for 85a1be8
1 file changed
intra/tun2socks.go
@@ -317,11 +317,12 @@ func pipeCrashOutput(c Console) (ok bool) {
317
log.E("tun: err crash output pipe: %v", err)
318
return false
319
}
320
- // core.Close(r) // do not close as r isn't dup'd by client code
+ defer core.Close(r) // r isn't dup'd by client code
321
defer core.Close(w) // always close as w is dup'd by the runtime
322
if setCrashFd(w) && c.CrashFD(int(r.Fd())) {
323
return true
324
325
+ setCrashFd(nil)
326
327
328
0 commit comments