mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53: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
|
echo ALRM received
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
kill -s ALRM $fish_pid
|
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
|
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