sigrestartable man page
dpk%brl-vgr at sri-unix.UUCP
dpk%brl-vgr at sri-unix.UUCP
Fri Jan 13 13:47:16 AEST 1984
From: Doug Kingston <dpk at brl-vgr>
The following is a manual page for the 4.2BSD system call
interface I distributed earlier.
----------------- sigrestartable.2 -----------------
.TH SIGRESTARTABLE 2b "11 January 1984"
.UC 4
.SH NAME
sigrestartable \- change system call restart behavior
.SH SYNOPSIS
.nf
.B sigrestartable(flag);
.B int flag;
.SH DESCRIPTION
.I Sigrestartable
is used to change the system call restart behavior
when a system call is interrupted by a signal.
If the
.I flag
is non-zero, then system calls will be restarted if they
are interrupted by a signal. This is the default behavior
on 4.2 BSD.
.PP
If the
.I flag
is 0, then restarting of system calls is disabled,
and system calls that are interrupted by a signal
will return with errno set to EINTR if no data has been transferred yet.
This is the behavior found on 4.1BSD and AT&T System V UNIX systems.
.PP
Note that the new 4.2 BSD signal handling semantics are not altered in
any other way; signal handlers remain installed until explicitly changed,
and the signal mask operates as documented in sigsetmask(2).
.SH "RETURN VALUE
None.
.SH "SEE ALSO"
sigvec(2), sigblock(2), sigpause(2), sigsetmask(2).
.SH CAVEAT
This is a BRL-developed system call, and may not have been adopted
on all systems. Hence, while using this system call may make life
easier locally, it does not enhance the portability of code to other
4.2 BSD systems.
More information about the Comp.unix.wizards
mailing list