You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspection of os/exec.Cmd.Start() shows that it will orphan descriptors created
internally if it fails to complete successfully. Finalization will close the descriptors
eventually, but it would be better if they were closed immediately.
Specifically, if os.StartProcess() or the setupFd methods return errors, Start() bails
out immediately.
The text was updated successfully, but these errors were encountered:
….Start() fails.
««« backport 9d046474e95a
os/exec: close all internal descriptors when Cmd.Start() fails.
This closes any internal descriptors (pipes, etc) that Cmd.Start() had
opened before it failed.
Fixes#3468.
R=golang-dev, iant, bradfitz
CC=golang-dev
https://golang.org/cl/5986044
»»»
by briandellisanti:
The text was updated successfully, but these errors were encountered: