Document behavior when the command dies from a signal in EXIT STATUS.
This commit is contained in:
22
doc/sudo.cat
22
doc/sudo.cat
@@ -412,19 +412,21 @@ CCOOMMMMAANNDD EEXXEECCUUTTIIOONN
|
||||
architecture.
|
||||
|
||||
EEXXIITT VVAALLUUEE
|
||||
Upon successful execution of a program, the exit status from _s_u_d_o will
|
||||
simply be the exit status of the program that was executed.
|
||||
Upon successful execution of a command, the exit status from ssuuddoo will be
|
||||
the exit status of the program that was executed. If the command
|
||||
terminated due to receipt of a signal, ssuuddoo will send itself the signal
|
||||
that terminated the command.
|
||||
|
||||
Otherwise, ssuuddoo exits with a value of 1 if there is a
|
||||
configuration/permission problem or if ssuuddoo cannot execute the given
|
||||
command. In the latter case the error string is printed to the standard
|
||||
command. In the latter case, the error string is printed to the standard
|
||||
error. If ssuuddoo cannot stat(2) one or more entries in the user's PATH, an
|
||||
error is printed on stderr. (If the directory does not exist or if it is
|
||||
not really a directory, the entry is ignored and no error is printed.)
|
||||
This should not happen under normal circumstances. The most common
|
||||
reason for stat(2) to return ``permission denied'' is if you are running
|
||||
an automounter and one of the directories in your PATH is on a machine
|
||||
that is currently unreachable.
|
||||
error is printed to the standard error. (If the directory does not exist
|
||||
or if it is not really a directory, the entry is ignored and no error is
|
||||
printed.) This should not happen under normal circumstances. The most
|
||||
common reason for stat(2) to return ``permission denied'' is if you are
|
||||
running an automounter and one of the directories in your PATH is on a
|
||||
machine that is currently unreachable.
|
||||
|
||||
SSEECCUURRIITTYY NNOOTTEESS
|
||||
ssuuddoo tries to be safe when executing external commands.
|
||||
@@ -608,4 +610,4 @@ DDIISSCCLLAAIIMMEERR
|
||||
file distributed with ssuuddoo or http://www.sudo.ws/license.html for
|
||||
complete details.
|
||||
|
||||
Sudo 1.8.15 September 15, 2015 Sudo 1.8.15
|
||||
Sudo 1.8.15 September 27, 2015 Sudo 1.8.15
|
||||
|
Reference in New Issue
Block a user