]>
Commit | Line | Data |
---|---|---|
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 |
12 | pause \- wait for signal | |
17ba5264 AC |
13 | .SH LIBRARY |
14 | Standard 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 |
24 | causes the calling process (or thread) to sleep |
25 | until a signal is delivered that either terminates the process or causes | |
26 | the invocation of a signal-catching function. | |
47297adb | 27 | .SH RETURN VALUE |
b4692225 | 28 | .BR pause () |
33a0ccb2 | 29 | returns only when a signal was caught and the |
c13182ef | 30 | signal-catching function returned. |
0bcb60ff | 31 | In this case, |
b4692225 | 32 | .BR pause () |
fea681da MK |
33 | returns \-1, and |
34 | .I errno | |
35 | is set to | |
36 | .\" .BR ERESTARTNOHAND . | |
37 | .BR EINTR . | |
38 | .SH ERRORS | |
39 | .TP | |
40 | .B EINTR | |
41 | a signal was caught and the signal-catching function returned. | |
3113c7f3 | 42 | .SH STANDARDS |
497f6bc7 | 43 | POSIX.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) |