OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man2 / pause.2
1 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
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 .\"
30 .TH PAUSE 2 2008-10-06 "Linux" "Linux Programmer's Manual"
31 .SH NAME
32 pause \- wait for signal
33 .SH SYNOPSIS
34 .B #include <unistd.h>
35 .sp
36 .B int pause(void);
37 .SH DESCRIPTION
38 .BR pause ()
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.
42 .SH RETURN VALUE
43 .BR pause ()
44 returns only when a signal was caught and the
45 signal-catching function returned.
46 In this case,
47 .BR pause ()
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.
57 .SH CONFORMING TO
58 SVr4, 4.3BSD, POSIX.1-2001.
59 .SH SEE ALSO
60 .BR kill (2),
61 .BR select (2),
62 .BR signal (2),
63 .BR sigsuspend (2)
64 .SH COLOPHON
65 This page is part of release 3.68 of the Linux
66 .I man-pages
67 project.
68 A description of the project,
69 information about reporting bugs,
70 and the latest version of this page,
71 can be found at
72 \%http://www.kernel.org/doc/man\-pages/.