reboot.2: Document effect of reboot() inside PID namespaces

Reported-by: Justin Cormack <justin@street-vision.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-03-07 00:28:10 +01:00
parent 2b91ac7916
commit 50f31881ac
1 changed files with 20 additions and 0 deletions

View File

@ -162,6 +162,26 @@ For the i386 architecture, the additional argument does not do
anything at present (2.1.122), but the type of reboot can be
determined by kernel command-line arguments ("reboot=...") to be
either warm or cold, and either hard or through the BIOS.
.SS Behavior inside PID namespaces
.\" commit commit 923c7538236564c46ee80c253a416705321f13e3
Since Linux 3.9, when
.BR reboot ()
is called from a PID namespace (see
.BR pid_namespaces (7))
other than the initial PID namespace,
the effect of the call is to send a signal to the namespace "init" process.
.BR LINUX_REBOOT_CMD_RESTART
and
.BR LINUX_REBOOT_CMD_RESTART2
cause a
.BR SIGHUP
signal to be sent.
.BR LINUX_REBOOT_CMD_POWER_OFF
and
.BR LINUX_REBOOT_CMD_HALT
cause a
.B SIGINT
signal to be sent.
.SH RETURN VALUE
For the values of
.I cmd