We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to the report from @nocd5 :
The executable built by go1.15 shutdowns enough fast , but, the one by go1.16 does too slow.
The text was updated successfully, but these errors were encountered:
This may be involved
Sorry, something went wrong.
I run this program and see Got signal: terminated and after some seconds, the terminal closes.
Got signal: terminated
package main import ( "os" "os/signal" "fmt" "time" ) func main() { println("Ok") for { c := make(chan os.Signal, 1) signal.Notify(c) s := <-c time.Sleep(time.Second) // ** ADDED THIS ** fmt.Println("Got signal:", s) } }
On runtime: handling of CTRL_CLOSE_EVENT seems broken · Issue #41884 · golang/go
you'll never see the Got signal: terminated (with Go 1.15.6, my patch fixes this).
Do not ignore SIGTERM for #410
3b551e4
Doc/release_note*.md: wrote about #410
a6a0084
it shutdowns faster by removing syscall.SIGTERM from signal.Ignore(os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
syscall.SIGTERM
signal.Ignore(os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
hymkor
No branches or pull requests
According to the report from @nocd5 :
The executable built by go1.15 shutdowns enough fast , but, the one by go1.16 does too slow.
The text was updated successfully, but these errors were encountered: