os,os/signal: documentation issue with Notify(), syscall.SIGTERM, and CTRL_CLOSE_EVENT/CTRL_LOGOFF_EVENT/CTRL_SHUTDOWN_EVENT #69847
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
Go version
go1.23
Output of
go env
in your module/workspace:What did you do?
I am trying to understand how Go handles signals on Windows.
What did you see happen?
When I read https://pkg.go.dev/os/signal?GOOS=windows#hdr-Windows, I see:
However, in
https://pkg.go.dev/syscall?GOOS=windows
there is nosyscall.SIGTERM
.What did you expect to see?
Probably, the documentation meant me to use
https://pkg.go.dev/golang.org/x/sys/windows
.I would expect the
os/signal
to indicate that I should look for the package described above.The text was updated successfully, but these errors were encountered: