We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10240b9 commit 5984ea7Copy full SHA for 5984ea7
doc/go1.html
@@ -1647,14 +1647,14 @@ <h3 id="os_signal">The os/signal package</h3>
1647
is
1648
</p>
1649
<pre>
1650
-c := make(chan os.Signal)
+c := make(chan os.Signal, 1)
1651
signal.Notify(c) // ask for all signals
1652
</pre>
1653
<p>
1654
but most code should list the specific signals it wants to handle instead:
1655
1656
1657
1658
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT)
1659
1660
0 commit comments