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