mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
test_helper: Give self-signalling a chance to trigger
This abort()ed right after the signal, so it's possible to crash before the signal is delivered. This could trigger under ASAN on Github Actions.
This commit is contained in:
parent
c759a98b37
commit
ce62b284b1
1 changed files with 2 additions and 0 deletions
|
@ -181,11 +181,13 @@ static void print_stop_cont() {
|
|||
|
||||
static void sigkill_self() {
|
||||
kill(getpid(), SIGKILL);
|
||||
usleep(20000000); // 20 secs
|
||||
abort();
|
||||
}
|
||||
|
||||
static void sigint_self() {
|
||||
kill(getpid(), SIGINT);
|
||||
usleep(20000000); // 20 secs
|
||||
abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue