mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 12:40:26 +08:00

Apparently on macOS SIGTSTP (from control-Z) causes `read()` to return EINTR. This means `cat | cat` will exit as soon as it's backgrounded and brought back. So instead we use `sleep`, which won't read(), and therefore is impervious to these puny attacks. See discussion in #7447.