]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/pause.2
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man2 / pause.2
CommitLineData
fea681da
MK
1.\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fea681da
MK
4.\"
5.\" Modified by Michael Haardt (michael@moria.de)
6.\" Modified Sat Jul 24 14:48:00 1993 by Rik Faith (faith@cs.unc.edu)
7.\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
8.\" Modified 2000 by aeb, following Michael Kerrisk
9.\"
45186a5d 10.TH PAUSE 2 2021-03-22 "Linux man-pages (unreleased)"
fea681da
MK
11.SH NAME
12pause \- wait for signal
17ba5264
AC
13.SH LIBRARY
14Standard C library
8fc3b2cf 15.RI ( libc ", " \-lc )
fea681da 16.SH SYNOPSIS
c7db92b9 17.nf
fea681da 18.B #include <unistd.h>
68e4db0a 19.PP
fea681da 20.B int pause(void);
c7db92b9 21.fi
fea681da 22.SH DESCRIPTION
e511ffb6 23.BR pause ()
1ca091c6
MK
24causes the calling process (or thread) to sleep
25until a signal is delivered that either terminates the process or causes
26the invocation of a signal-catching function.
47297adb 27.SH RETURN VALUE
b4692225 28.BR pause ()
33a0ccb2 29returns only when a signal was caught and the
c13182ef 30signal-catching function returned.
0bcb60ff 31In this case,
b4692225 32.BR pause ()
fea681da
MK
33returns \-1, and
34.I errno
35is set to
36.\" .BR ERESTARTNOHAND .
37.BR EINTR .
38.SH ERRORS
39.TP
40.B EINTR
41a signal was caught and the signal-catching function returned.
3113c7f3 42.SH STANDARDS
497f6bc7 43POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
47297adb 44.SH SEE ALSO
fea681da
MK
45.BR kill (2),
46.BR select (2),
b4692225 47.BR signal (2),
ccd2b351 48.BR sigsuspend (2)