New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os: `Process` finalizer should wait for process on Unix systems #18881

Open
ianlancetaylor opened this Issue Feb 1, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@ianlancetaylor
Contributor

ianlancetaylor commented Feb 1, 2017

The os package sets a finalizer on all Process values. Currently, on Unix, that finalizer does nothing useful. It should probably call wait on the process if that has not already been done, to remove the otherwise zombie process.

@ianlancetaylor ianlancetaylor added this to the Go1.9Maybe milestone Feb 1, 2017

@minux

This comment has been minimized.

Member

minux commented Feb 1, 2017

@bradfitz

This comment has been minimized.

Member

bradfitz commented Nov 30, 2017

Too late for Go 1.10, but I'd love to see this done by the runtime at some point. Zombie accumulation is one of my top 10 Go bugs. It's easy to diagnose and fix, but I wonder how many people don't do either.

@bradfitz bradfitz modified the milestones: Go1.10, Go1.11 Nov 30, 2017

@gopherbot gopherbot modified the milestones: Go1.11, Unplanned May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment