[go] os/signal: add Notify windows documentation

2 views
Skip to first unread message

Alex Brainman (Gerrit)

unread,
Apr 27, 2026, 1:52:41 AM (2 days ago) Apr 27
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Alex Brainman has uploaded the change for review

Commit message

os/signal: add Notify windows documentation

Add that Notify only accepts os.Interrupt signal on windows.

Updates #77076
Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140

Change diff

diff --git a/src/os/signal/doc.go b/src/os/signal/doc.go
index df942b8..1d8fb52 100644
--- a/src/os/signal/doc.go
+++ b/src/os/signal/doc.go
@@ -213,8 +213,9 @@
On Windows a ^C (Control-C) or ^BREAK (Control-Break) normally cause
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.
+not exit. [os.Interrupt] is the only signal that can be used on Windows.
+If Reset is called, or Stop is called on all channels passed to Notify,
+then the default behavior will be restored.

Additionally, if Notify is called, and Windows sends CTRL_CLOSE_EVENT,
CTRL_LOGOFF_EVENT or CTRL_SHUTDOWN_EVENT to the process, Notify will

Change information

Files:
  • M src/os/signal/doc.go
Change size: XS
Delta: 1 file changed, 3 insertions(+), 2 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
Gerrit-Change-Number: 770920
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Brainman <alex.b...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Alex Brainman (Gerrit)

unread,
Apr 27, 2026, 1:53:07 AM (2 days ago) Apr 27
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Alex Brainman voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
Gerrit-Change-Number: 770920
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Brainman <alex.b...@gmail.com>
Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
Gerrit-Comment-Date: Mon, 27 Apr 2026 05:53:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Michael Pratt (Gerrit)

unread,
Apr 27, 2026, 10:01:12 AM (2 days ago) Apr 27
to Alex Brainman, goph...@pubsubhelper.golang.org, Michael Pratt, golang...@luci-project-accounts.iam.gserviceaccount.com, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Alex Brainman and Ian Lance Taylor

Michael Pratt voted Code-Review+2

Code-Review+2
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Brainman
  • Ian Lance Taylor
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
Gerrit-Change-Number: 770920
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Brainman <alex.b...@gmail.com>
Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
Gerrit-Comment-Date: Mon, 27 Apr 2026 14:01:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Carlos Amedee (Gerrit)

unread,
Apr 28, 2026, 2:18:38 PM (15 hours ago) Apr 28
to Alex Brainman, goph...@pubsubhelper.golang.org, Michael Pratt, golang...@luci-project-accounts.iam.gserviceaccount.com, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
Attention needed from Alex Brainman and Ian Lance Taylor

Carlos Amedee voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Brainman
  • Ian Lance Taylor
Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
    Gerrit-Change-Number: 770920
    Gerrit-PatchSet: 1
    Gerrit-Owner: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
    Gerrit-Attention: Alex Brainman <alex.b...@gmail.com>
    Gerrit-Comment-Date: Tue, 28 Apr 2026 18:18:34 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Alex Brainman (Gerrit)

    unread,
    Apr 28, 2026, 9:11:36 PM (8 hours ago) Apr 28
    to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Carlos Amedee, Michael Pratt, golang...@luci-project-accounts.iam.gserviceaccount.com, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com

    Alex Brainman submitted the change

    Change information

    Commit message:
    os/signal: add Notify windows documentation

    Add that Notify only accepts os.Interrupt signal on windows.

    Updates #77076
    Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
    Files:
    • M src/os/signal/doc.go
    Change size: XS
    Delta: 1 file changed, 3 insertions(+), 2 deletions(-)
    Branch: refs/heads/master
    Submit Requirements:
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I09a3ae68d198d615f12ee7de6082c4993f39f140
    Gerrit-Change-Number: 770920
    Gerrit-PatchSet: 2
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages