SYNOPSIS
#include <signal.h>
int siginterrupt(int sig, int flag);
DESCRIPTION
The
int siginterrupt(int sig, int flag) {
struct sigaction act;
(void)sigaction(sig, NULL, &act);
if (flag)
act.sa_flags &= ~SA_RESTART;
else
act.sa_flags |= SA_RESTART;
return
sigaction(sig, &act, NULL);
}
PARAMETERS
- sig
-
Is the signal number for which the restart state is to be modified.
- flag
-
Determines whether sig interrupts system calls. If true, sig does interrupt. Otherwise, system calls are restarted when possible.
RETURN VALUES
On success,
CONFORMANCE
UNIX 98
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
sigaction() ,signal()
MKS Toolkit 9.2 Documentation Build 16.