mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
77d33a8eb9
Fixes #6828
25 lines
504 B
Fish
25 lines
504 B
Fish
#RUN: %fish -C "set helper %fish_test_helper" %s
|
|
|
|
# Block some signals if job control is off (#6828).
|
|
|
|
status job-control none
|
|
for fish_use_posix_spawn in 0 1
|
|
$helper print_blocked_signals &
|
|
wait
|
|
end
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
|
|
# Ensure we can break from a while loop.
|
|
|
|
echo About to sigint
|
|
$helper sigint_parent &
|
|
while true
|
|
end
|
|
echo I should not be printed because I got sigint
|
|
|
|
#CHECK: About to sigint
|
|
#CHECKERR: Sent SIGINT to {{\d*}}
|