-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwaitpid.1
68 lines (67 loc) · 1.69 KB
/
waitpid.1
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.de CW
.sp
.nf
.ft CW
..
.de CE
.ft R
.fi
.sp
..
.TH WAITPID 1 "March 2014" "waitpid 0.3" "User Commands"
.SH NAME
waitpid \- wait for process termination
.SH SYNOPSIS
.B waitpid
[\fIOPTION\fR]... \fIPID\fR...
.SH DESCRIPTION
Wait until all the specified processes have exited.
.TP
\fB\-f\fR, \fB\-\-force\fR
do not fail if one of the PID specified does not correspond to a running
process
.TP
\fB\-s\fR, \fB\-\-sleep\-interval\fR=\fIN\fR
when
.BR ptrace (2)
is not available, check for the existence of the processes every
.I N
seconds (default: 0.5)
.TP
\fB\-v\fR, \fB\-\-verbose\fR
display a message on the standard output every time a process exits or receives
a signal
.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
.TP
\fB\-\-version\fR
output version information and exit
.SH NOTES
When possible, this program will use the
.BR ptrace (2)
system call to wait for programs. With
.BR ptrace (2)
the
.B --sleep-interval
option is ignored, as events are reported immediately. Additionally, if
.B --verbose
is specified, the program will display exit statuses and signals received by
the processes.
If
.BR ptrace (2)
is not available, processes are checked periodically,
.B --sleep-interval
is not ignored and
.B --verbose
does not report detailed information about exit statuses and signals received.
.SH AUTHOR
Written by Andrea Corbellini <corbellini.andrea@gmail.com>.
.SH "REPORTING BUGS"
Report bugs to https://github.com/andrea-corbellini/waitpid
.SH COPYRIGHT
Copyright (c) 2012-2015 Andrea Corbellini. This software is released under the
BSD 2-clause license. This is free software: you are free to change and
redistribute it. There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
.BR ptrace (2)