mirror of https://github.com/mkerrisk/man-pages
pidfd_open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7f52c11c37
commit
b93ed8895e
|
@ -111,14 +111,14 @@ call, its PID will not have been recycled and the returned
|
|||
file descriptor will refer to the resulting zombie process.
|
||||
Note, however, that this is guaranteed only if the following
|
||||
conditions hold true:
|
||||
.IP * 3
|
||||
.IP \(bu 2
|
||||
the disposition of
|
||||
.BR SIGCHLD
|
||||
has not been explicitly set to
|
||||
.BR SIG_IGN
|
||||
(see
|
||||
.BR sigaction (2));
|
||||
.IP *
|
||||
.IP \(bu
|
||||
the
|
||||
.BR SA_NOCLDWAIT
|
||||
flag was not specified while establishing a handler for
|
||||
|
@ -128,7 +128,7 @@ or while setting the disposition of that signal to
|
|||
(see
|
||||
.BR sigaction (2));
|
||||
and
|
||||
.IP *
|
||||
.IP \(bu
|
||||
the zombie process was not reaped elsewhere in the program
|
||||
(e.g., either by an asynchronously executed signal handler or by
|
||||
.BR wait (2)
|
||||
|
@ -151,12 +151,12 @@ A PID file descriptor returned by
|
|||
with the
|
||||
.BR CLONE_PID
|
||||
flag) can be used for the following purposes:
|
||||
.IP * 3
|
||||
.IP \(bu 2
|
||||
The
|
||||
.BR pidfd_send_signal (2)
|
||||
system call can be used to send a signal to the process referred to by
|
||||
a PID file descriptor.
|
||||
.IP *
|
||||
.IP \(bu
|
||||
A PID file descriptor can be monitored using
|
||||
.BR poll (2),
|
||||
.BR select (2),
|
||||
|
@ -169,11 +169,11 @@ nothing can be read from the file descriptor
|
|||
.RB ( read (2)
|
||||
on the file descriptor fails with the error
|
||||
.BR EINVAL ).
|
||||
.IP *
|
||||
.IP \(bu
|
||||
If the PID file descriptor refers to a child of the calling process,
|
||||
then it can be waited on using
|
||||
.BR waitid (2).
|
||||
.IP *
|
||||
.IP \(bu
|
||||
The
|
||||
.BR pidfd_getfd (2)
|
||||
system call can be used to obtain a duplicate of a file descriptor
|
||||
|
|
Loading…
Reference in New Issue