runtime: don't die after dumping goroutines on SIGQUIT #33282
Closed
Labels
Comments
quote from Wikipedia:
The name sigquit really implies to me that the primary objective is to quit, the core dump is an added bonus. Also, java isn't always the best point of reference. Java probably did a lot of things right, but may have also accumulated some behavior that's suboptimal in hindsight. |
Making that change at this point would break too many people's operating procedures, so we aren't going to implement it as written. I'm going to close this issue. Please comment if you disagree. You can implement this general idea yourself using the os/signal package and the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
go version go1.10.3 linux/amd64
When sending a
SIGQUIT
to a running Go process:It would have been a much more useful feature if SIGQUIT didn't kill the Go process, but only dumped the goroutines (i.e. did # 1 but not # 2).
NB: Java works that way -- a SIGQUIT dumps the threads, and then the JVM continues running normally. You can dump threads as many times as you like without killing the process.
The text was updated successfully, but these errors were encountered: