Enhance the signal test

This commit is contained in:
ridiculousfish 2019-02-23 12:41:01 -08:00
parent 0f30f05e16
commit f015f930f1
2 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -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