Skip to content

Commit 1a3e4f0

Browse files
kostya-shbradfitz
authored andcommitted
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 <[email protected]>
1 parent 495e3c6 commit 1a3e4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/signal/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ before raising the signal.
205205
Windows
206206
207207
On Windows a ^C (Control-C) or ^BREAK (Control-Break) normally cause
208-
the program to exit. If Notify is called for os.SIGINT, ^C or ^BREAK
209-
will cause os.SIGINT to be sent on the channel, and the program will
208+
the program to exit. If Notify is called for os.Interrupt, ^C or ^BREAK
209+
will cause os.Interrupt to be sent on the channel, and the program will
210210
not exit. If Reset is called, or Stop is called on all channels passed
211211
to Notify, then the default behavior will be restored.
212212

0 commit comments

Comments
 (0)