Re: [go-nuts] Re: Should SIGTERM be included in the os package?

2019-04-16 Thread Matt Harden
I think the docs on os.Signal explain it: The only signal values guaranteed to be present in the os package on all systems are os.Interrupt (send the process an interrupt) and os.Kill (force the process to exit). On Windows, sending os.Interrupt to a process with os.Process.Signal is not

[go-nuts] Re: Should SIGTERM be included in the os package?

2019-04-16 Thread Nathan Fisher
As an alternative should the docs be updated to use the syscall package signals directly? https://godoc.org/os/signal#Notify Feels mildly strange intermixing vars from os and syscall where each has it's own distinct convention for the signal names. The two signals found in os follow the standard