File: pause.2

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (45 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH pause 2 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
pause \- wait for signal
.SH LIBRARY
Standard C library
.RI ( libc ,\~ \-lc )
.SH SYNOPSIS
.nf
.B #include <unistd.h>
.P
.B int pause(void);
.fi
.SH DESCRIPTION
.BR pause ()
causes the calling process (or thread) to sleep
until a signal is delivered that either terminates the process or causes
the invocation of a signal-catching function.
.SH RETURN VALUE
.BR pause ()
returns only when a signal was caught and the
signal-catching function returned.
In this case,
.BR pause ()
returns \-1, and
.I errno
is set to
.\" .BR ERESTARTNOHAND .
.BR EINTR .
.SH ERRORS
.TP
.B EINTR
a signal was caught and the signal-catching function returned.
.SH STANDARDS
POSIX.1-2008.
.SH HISTORY
POSIX.1-2001, SVr4, 4.3BSD.
.SH SEE ALSO
.BR kill (2),
.BR select (2),
.BR signal (2),
.BR sigsuspend (2)