mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 22:42:39 +08:00
Add basic signal test
This commit is contained in:
parent
da04f757f9
commit
6bddf2c83b
@ -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…
x
Reference in New Issue
Block a user