mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Enhance the signal test
This commit is contained in:
parent
0f30f05e16
commit
f015f930f1
2 changed files with 17 additions and 0 deletions
|
@ -2,5 +2,14 @@ function alarm --on-signal ALRM
|
|||
echo ALRM received
|
||||
end
|
||||
|
||||
|
||||
kill -s ALRM $fish_pid
|
||||
|
||||
function anychild --on-process-exit 0
|
||||
# Type and exit status
|
||||
echo $argv[1] $argv[3]
|
||||
end
|
||||
|
||||
command false
|
||||
command true
|
||||
command false | command true
|
||||
|
|
|
@ -1 +1,9 @@
|
|||
ALRM received
|
||||
PROCESS_EXIT 1
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 0
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 1
|
||||
PROCESS_EXIT 0
|
||||
JOB_EXIT 0
|
||||
PROCESS_EXIT 0
|
||||
|
|
Loading…
Reference in a new issue