siginterrupt() is used to change the function restart behavior when a function is interrupted by the specified signal. If the flag is false (0), then functions
will be restarted if they are interrupted by the specified signal and no data has been transferred yet. System call restart is the default behavior when the signal(3C) routine is used.
If the flag is true, (1), then restarting of functions is disabled. If a function is interrupted by the specified signal and no data has been transferred, the function will return
-1 with errno set to EINTR. Interrupted functions that have started transferring data will return the amount of data actually transferred.
Issuing a siginterrupt() call during the execution of a signal handler will cause the new action to take place on the next signal to be caught.
|