OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man2 / pause.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
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 only returns 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)