]> Cypherpunks repositories - gostls13.git/commitdiff
os/signal: fix wrong constant name in the documentation
authorKonstantin Shaposhnikov <k.shaposhnikov@gmail.com>
Tue, 17 May 2016 12:16:41 +0000 (20:16 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 17 May 2016 14:55:14 +0000 (14:55 +0000)
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 <bradfitz@golang.org>
src/os/signal/doc.go

index 9ee547b15db420562d2fd25178d8dbb08bd9e058..73b01a2764de60667979964bb3cc3ad21d677f6d 100644 (file)
@@ -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.