]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992 |
2 | .\" | |
93015253 | 3 | .\" %%%LICENSE_START(VERBATIM) |
fea681da MK |
4 | .\" Permission is granted to make and distribute verbatim copies of this |
5 | .\" manual provided the copyright notice and this permission notice are | |
6 | .\" preserved on all copies. | |
7 | .\" | |
8 | .\" Permission is granted to copy and distribute modified versions of this | |
9 | .\" manual under the conditions for verbatim copying, provided that the | |
10 | .\" entire resulting derived work is distributed under the terms of a | |
11 | .\" permission notice identical to this one. | |
c13182ef | 12 | .\" |
fea681da MK |
13 | .\" Since the Linux kernel and libraries are constantly changing, this |
14 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
15 | .\" responsibility for errors or omissions, or for damages resulting from | |
16 | .\" the use of the information contained herein. The author(s) may not | |
17 | .\" have taken the same level of care in the production of this manual, | |
18 | .\" which is licensed free of charge, as they might when working | |
19 | .\" professionally. | |
c13182ef | 20 | .\" |
fea681da MK |
21 | .\" Formatted or processed versions of this manual, if unaccompanied by |
22 | .\" the source, must acknowledge the copyright and authors of this work. | |
4b72fb64 | 23 | .\" %%%LICENSE_END |
fea681da MK |
24 | .\" |
25 | .\" Modified by Michael Haardt (michael@moria.de) | |
26 | .\" Modified Sat Jul 24 14:48:00 1993 by Rik Faith (faith@cs.unc.edu) | |
27 | .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au) | |
28 | .\" Modified 2000 by aeb, following Michael Kerrisk | |
29 | .\" | |
460495ca | 30 | .TH PAUSE 2 2015-08-08 "Linux" "Linux Programmer's Manual" |
fea681da MK |
31 | .SH NAME |
32 | pause \- wait for signal | |
33 | .SH SYNOPSIS | |
34 | .B #include <unistd.h> | |
68e4db0a | 35 | .PP |
fea681da MK |
36 | .B int pause(void); |
37 | .SH DESCRIPTION | |
e511ffb6 | 38 | .BR pause () |
1ca091c6 MK |
39 | causes the calling process (or thread) to sleep |
40 | until a signal is delivered that either terminates the process or causes | |
41 | the invocation of a signal-catching function. | |
47297adb | 42 | .SH RETURN VALUE |
b4692225 | 43 | .BR pause () |
33a0ccb2 | 44 | returns only when a signal was caught and the |
c13182ef | 45 | signal-catching function returned. |
0bcb60ff | 46 | In this case, |
b4692225 | 47 | .BR pause () |
fea681da MK |
48 | returns \-1, and |
49 | .I errno | |
50 | is set to | |
51 | .\" .BR ERESTARTNOHAND . | |
52 | .BR EINTR . | |
53 | .SH ERRORS | |
54 | .TP | |
55 | .B EINTR | |
56 | a signal was caught and the signal-catching function returned. | |
47297adb | 57 | .SH CONFORMING TO |
497f6bc7 | 58 | POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD. |
47297adb | 59 | .SH SEE ALSO |
fea681da MK |
60 | .BR kill (2), |
61 | .BR select (2), | |
b4692225 | 62 | .BR signal (2), |
ccd2b351 | 63 | .BR sigsuspend (2) |