mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
slightly better wording in comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b12553faa8
commit
bac0a25f72
@ -3,9 +3,9 @@
|
|||||||
(sleep 1; echo Sending SIGINT to main shell PID; exec kill -INT $$) &
|
(sleep 1; echo Sending SIGINT to main shell PID; exec kill -INT $$) &
|
||||||
|
|
||||||
# We create a child which exits with 0 even on SIGINT
|
# We create a child which exits with 0 even on SIGINT
|
||||||
# (This is truly necessary only if SIGINT is generated by ^C,
|
# (The complex command is necessary only if SIGINT is generated by ^C,
|
||||||
# in this testcase even bare "sleep 2" would do because
|
# in this testcase even bare "sleep 2" would do because
|
||||||
# we don't send SIGINT _to_ the_ child_...)
|
# in the testcase we don't send SIGINT *to the child*...)
|
||||||
$THIS_SH -c 'trap "exit 0" SIGINT; sleep 2'
|
$THIS_SH -c 'trap "exit 0" SIGINT; sleep 2'
|
||||||
|
|
||||||
# In one second, we (main shell) get SIGINT here.
|
# In one second, we (main shell) get SIGINT here.
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
(sleep 1; echo Sending SIGINT to main shell PID; exec kill -INT $$) &
|
(sleep 1; echo Sending SIGINT to main shell PID; exec kill -INT $$) &
|
||||||
|
|
||||||
# We create a child which exits with 0 even on SIGINT
|
# We create a child which exits with 0 even on SIGINT
|
||||||
# (This is truly necessary only if SIGINT is generated by ^C,
|
# (The complex command is necessary only if SIGINT is generated by ^C,
|
||||||
# in this testcase even bare "sleep 2" would do because
|
# in this testcase even bare "sleep 2" would do because
|
||||||
# we don't send SIGINT _to_ the_ child_...)
|
# in the testcase we don't send SIGINT *to the child*...)
|
||||||
$THIS_SH -c 'trap "exit 0" SIGINT; sleep 2'
|
$THIS_SH -c 'trap "exit 0" SIGINT; sleep 2'
|
||||||
|
|
||||||
# In one second, we (main shell) get SIGINT here.
|
# In one second, we (main shell) get SIGINT here.
|
||||||
|
Loading…
Reference in New Issue
Block a user