From: Konstantin Shaposhnikov Date: Tue, 17 May 2016 12:16:41 +0000 (+0800) Subject: os/signal: fix wrong constant name in the documentation X-Git-Tag: go1.7beta1~193 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1a3e4f05a067f37e8ee8f7a0d5eec39a7e0cad84;p=gostls13.git os/signal: fix wrong constant name in the documentation os.SIGINT is not defined, os.Interrupt or syscall.SIGINT should be used. Change-Id: I39867726d28e179d1160a4fd353b7bea676c9dbb Reviewed-on: https://go-review.googlesource.com/23127 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/signal/doc.go b/src/os/signal/doc.go index 9ee547b15d..73b01a2764 100644 --- a/src/os/signal/doc.go +++ b/src/os/signal/doc.go @@ -205,8 +205,8 @@ before raising the signal. Windows On Windows a ^C (Control-C) or ^BREAK (Control-Break) normally cause -the program to exit. If Notify is called for os.SIGINT, ^C or ^BREAK -will cause os.SIGINT to be sent on the channel, and the program will +the program to exit. If Notify is called for os.Interrupt, ^C or ^BREAK +will cause os.Interrupt to be sent on the channel, and the program will not exit. If Reset is called, or Stop is called on all channels passed to Notify, then the default behavior will be restored.