S\bSi\big\bgn\bna\bal\bl h\bha\ban\bnd\bdl\bli\bin\bng\bg
When the command is run as a child of the s\bsu\bud\bdo\bo process, s\bsu\bud\bdo\bo will relay
- signals it receives to the command. Unless the command is being run in a
- new pty, the SIGINT and SIGQUIT signals are not relayed unless they are
- sent by a user process, not the kernel. Otherwise, the command would
- receive SIGINT twice every time the user entered control-C. Some
- 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
+ signals it receives to the command. The SIGINT and SIGQUIT signals are
+ only relayed when the command is being run in a new pty or when the
+ signal was sent by a user process, not the kernel. This prevents the
+ command from receiving SIGINT twice each time the user enters control-C.
+ Some 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
instead of SIGSTOP when you wish to suspend a command being run by s\bsu\bud\bdo\bo.
As a special case, s\bsu\bud\bdo\bo will not relay signals that were sent by the
process,
\fBsudo\fR
will relay signals it receives to the command.
-Unless the command is being run in a new pty, the
+The
\fRSIGINT\fR
and
\fRSIGQUIT\fR
-signals are not relayed unless they are sent by a user process,
-not the kernel.
-Otherwise, the command would receive
+signals are only relayed when the command is being run in a new pty
+or when the signal was sent by a user process, not the kernel.
+This prevents the command from receiving
\fRSIGINT\fR
-twice every time the user entered control-C.
+twice each time the user enters control-C.
Some signals, such as
\fRSIGSTOP\fR
and
process,
.Nm
will relay signals it receives to the command.
-Unless the command is being run in a new pty, the
+The
.Dv SIGINT
and
.Dv SIGQUIT
-signals are not relayed unless they are sent by a user process,
-not the kernel.
-Otherwise, the command would receive
+signals are only relayed when the command is being run in a new pty
+or when the signal was sent by a user process, not the kernel.
+This prevents the command from receiving
.Dv SIGINT
-twice every time the user entered control-C.
+twice each time the user enters control-C.
Some signals, such as
.Dv SIGSTOP
and