os, os/signal: inconsistent documentation #27854
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Windows
Milestone
I'm trying to define cleanup behavior in a Windows program, so I want to catch a signal, do some cleanup, and then exit the program. I don't have a Windows machine though so testing this is sort of tricky.
The docs for
os.Interrupt
state:However, the docs for
os/signal
state, under the Windows section:I'm confused how Interrupt can be all of:
Searching the
os
package source code for Interrupt seems to show it's only defined for unix/posix GOOS's and not for Windows. It might be nice to add a short doc to theos
package explaining how it gets sent (if I am reading correctly, fromruntime/os_windows.go:ctrlhandler1
andruntime/sigqueue.go:sigsend
).The text was updated successfully, but these errors were encountered: