'\"macro stdmacro
.if n .pH g2.pause @(#)pause	40.9 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} pause 2 "" "\&"
.if \nX=1 .ds x} pause 2 ""
.if \nX=2 .ds x} pause 2 "" "\&"
.if \nX=3 .ds x} pause "" "" "\&"
.TH \*(x}
.SH NAME
\f4pause\f1 \- suspend process until signal
.SH SYNOPSIS
\f4#include <unistd.h>
.PP
\f4int pause(void);
.SH DESCRIPTION
\f4pause\fP
suspends the calling process until it receives a signal.
The signal must be one that is not currently set to be ignored by the
calling process.
.PP
If the signal causes termination of the calling process,
\f4pause\fP
does not return.
.PP
If the signal is
caught
by the calling process and control is returned from
the signal-catching function [see
\f4signal\fP(2)],
the calling process
resumes execution from the point of suspension;
with a return value of
\-1 from
\f4pause\fP
and
\f4errno\fP
set to
\f4EINTR\fP.
.SH SEE ALSO
\f4alarm\fP(2), \f4kill\fP(2), \f4signal\fP(2), \f4sigpause\fP(2), \f4wait\fP(2).
.\"	@(#)pause.2	6.2 of 9/6/83
.Ee
