siginterrupt(2)siginterrupt(2)NAMEsiginterrupt - allow signals to interrupt functions
The function is used to change the restart behaviour when a function is
interrupted by the specified signal. The function sig, flag) has an
effect as if implemented as:
Upon successful completion, returns 0. Otherwise −1 is returned and is
set to indicate the error.
The function will fail if:
[EINVAL] The sig argument is not a valid signal
The function supports programs written to historical system interfaces.
A portable application, when being written or rewritten, should use
with the flag instead of
System call restart is a process attribute. Therefore, changing the
restart behavior affects all threads in the process.
SEE ALSOsigaction(2), <signal.h>.
First released in Issue 4, Version 2.