-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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/signal: No way to re-enable default handlers #4268
Labels
Milestone
Comments
Comment 1 by jacobsa@google.com: In case my rambling above wasn't clear, here's an example: package main import ( "os" "os/signal" ) func main() { c := make(chan os.Signal) signal.Notify(c, os.Interrupt) select {} } Run `go build signal.go && ./signal`, then observe you can't stop it using Ctrl-C. This is a stupid case, but the "suppress SIGINT temporarily but not forever from a library" thing maybe isn't. |
This issue was closed by revision cb4428e. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jacobsa@google.com:
The text was updated successfully, but these errors were encountered: