mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add basic signal test
This commit is contained in:
parent
da04f757f9
commit
6bddf2c83b
4 changed files with 8 additions and 0 deletions
|
@ -273,6 +273,7 @@ static void handle_sigalarm(int sig, siginfo_t *info, void *context) {
|
|||
UNUSED(info);
|
||||
UNUSED(context);
|
||||
if (reraise_if_forked_child(sig)) return;
|
||||
default_handler(sig, info, context);
|
||||
}
|
||||
|
||||
void signal_reset_handlers() {
|
||||
|
|
0
tests/signal.err
Normal file
0
tests/signal.err
Normal file
6
tests/signal.in
Normal file
6
tests/signal.in
Normal file
|
@ -0,0 +1,6 @@
|
|||
function alarm --on-signal ALRM
|
||||
echo ALRM received
|
||||
end
|
||||
|
||||
kill -s ALRM $fish_pid
|
||||
|
1
tests/signal.out
Normal file
1
tests/signal.out
Normal file
|
@ -0,0 +1 @@
|
|||
ALRM received
|
Loading…
Reference in a new issue