mirror of
https://github.com/nushell/nushell
synced 2024-12-25 12:33:17 +00:00
Fix rm
on macOS (#10282)
# Description Removes the signal ignore for `SIGCHLD` added by #10021, since it interferes with `rm` on macOS.
This commit is contained in:
parent
eeaa65c8af
commit
21d30d1e4d
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ pub(crate) fn acquire_terminal(interactive: bool) {
|
||||||
signal(Signal::SIGTSTP, SigHandler::SigIgn).expect("signal ignore");
|
signal(Signal::SIGTSTP, SigHandler::SigIgn).expect("signal ignore");
|
||||||
signal(Signal::SIGTTIN, SigHandler::SigIgn).expect("signal ignore");
|
signal(Signal::SIGTTIN, SigHandler::SigIgn).expect("signal ignore");
|
||||||
signal(Signal::SIGTTOU, SigHandler::SigIgn).expect("signal ignore");
|
signal(Signal::SIGTTOU, SigHandler::SigIgn).expect("signal ignore");
|
||||||
signal(Signal::SIGCHLD, SigHandler::SigIgn).expect("signal ignore");
|
|
||||||
|
// TODO: determine if this is necessary or not, since this breaks `rm` on macOS
|
||||||
|
// signal(Signal::SIGCHLD, SigHandler::SigIgn).expect("signal ignore");
|
||||||
|
|
||||||
signal_hook::low_level::register(signal_hook::consts::SIGTERM, || {
|
signal_hook::low_level::register(signal_hook::consts::SIGTERM, || {
|
||||||
// Safety: can only call async-signal-safe functions here
|
// Safety: can only call async-signal-safe functions here
|
||||||
|
|
Loading…
Reference in a new issue