Since Go 1.15 (#20400), the Go runtime no longer assumes that C signal handlers have the SA_RESTART flag set.
However, the os/signal documentation still says:
the Go standard library expects that any signal handlers will use the SA_RESTART flag. Failing to do so may cause some library calls to return "interrupted system call" errors.
That documentation should be updated; probably we can just remove those two sentences.
Since Go 1.15 (#20400), the Go runtime no longer assumes that C signal handlers have the
SA_RESTARTflag set.However, the
os/signaldocumentation still says:That documentation should be updated; probably we can just remove those two sentences.