SIGHUP is now relayed to the command. Bug #719

This commit is contained in:
Todd C. Miller
2015-09-15 12:24:19 -06:00
parent 3f6f1cd15c
commit 3ac17b302b
3 changed files with 6 additions and 8 deletions

View File

@@ -375,9 +375,9 @@ CCOOMMMMAANNDD EEXXEECCUUTTIIOONN
SSiiggnnaall hhaannddlliinngg SSiiggnnaall hhaannddlliinngg
When the command is run as a child of the ssuuddoo process, ssuuddoo will relay When the command is run as a child of the ssuuddoo process, ssuuddoo will relay
signals it receives to the command. Unless the command is being run in a signals it receives to the command. Unless the command is being run in a
new pty, the SIGHUP, SIGINT and SIGQUIT signals are not relayed unless new pty, the SIGINT and SIGQUIT signals are not relayed unless they are
they are sent by a user process, not the kernel. Otherwise, the command sent by a user process, not the kernel. Otherwise, the command would
would receive SIGINT twice every time the user entered control-C. Some receive SIGINT twice every time the user entered control-C. Some
signals, such as SIGSTOP and SIGKILL, cannot be caught and thus will not signals, such as SIGSTOP and SIGKILL, cannot be caught and thus will not
be relayed to the command. As a general rule, SIGTSTP should be used be relayed to the command. As a general rule, SIGTSTP should be used
instead of SIGSTOP when you wish to suspend a command being run by ssuuddoo. instead of SIGSTOP when you wish to suspend a command being run by ssuuddoo.
@@ -608,4 +608,4 @@ DDIISSCCLLAAIIMMEERR
file distributed with ssuuddoo or http://www.sudo.ws/license.html for file distributed with ssuuddoo or http://www.sudo.ws/license.html for
complete details. complete details.
Sudo 1.8.15 August 9, 2015 Sudo 1.8.15 Sudo 1.8.15 September 15, 2015 Sudo 1.8.15

View File

@@ -21,7 +21,7 @@
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\" .\"
.TH "SUDO" "8" "August 9, 2015" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" .TH "SUDO" "8" "September 15, 2015" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.nh .nh
.if n .ad l .if n .ad l
.SH "NAME" .SH "NAME"
@@ -731,7 +731,6 @@ process,
\fBsudo\fR \fBsudo\fR
will relay signals it receives to the command. will relay signals it receives to the command.
Unless the command is being run in a new pty, the Unless the command is being run in a new pty, the
\fRSIGHUP\fR,
\fRSIGINT\fR \fRSIGINT\fR
and and
\fRSIGQUIT\fR \fRSIGQUIT\fR

View File

@@ -19,7 +19,7 @@
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\" .\"
.Dd August 9, 2015 .Dd September 15, 2015
.Dt SUDO @mansectsu@ .Dt SUDO @mansectsu@
.Os Sudo @PACKAGE_VERSION@ .Os Sudo @PACKAGE_VERSION@
.Sh NAME .Sh NAME
@@ -666,7 +666,6 @@ process,
.Nm .Nm
will relay signals it receives to the command. will relay signals it receives to the command.
Unless the command is being run in a new pty, the Unless the command is being run in a new pty, the
.Dv SIGHUP ,
.Dv SIGINT .Dv SIGINT
and and
.Dv SIGQUIT .Dv SIGQUIT