Skip to content

Commit a08adda

Browse files
os/signal: remove comments about SA_RESTART
It's no longer necessary for non-Go signal handlers to use SA_RESTART. For #20400 Fixes #44761 Change-Id: Ie3c7fecc631a4a2822331754296ea09b308e1391 Reviewed-on: https://go-review.googlesource.com/c/go/+/298269 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent bd37284 commit a08adda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/os/signal/doc.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ If the non-Go code installs any signal handlers, it must use the
129129
SA_ONSTACK flag with sigaction. Failing to do so is likely to cause
130130
the program to crash if the signal is received. Go programs routinely
131131
run with a limited stack, and therefore set up an alternate signal
132-
stack. Also, the Go standard library expects that any signal handlers
133-
will use the SA_RESTART flag. Failing to do so may cause some library
134-
calls to return "interrupted system call" errors.
132+
stack.
135133
136134
If the non-Go code installs a signal handler for any of the
137135
synchronous signals (SIGBUS, SIGFPE, SIGSEGV), then it should record

0 commit comments

Comments
 (0)