forked from extern/nushell
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
@ -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 New Issue
Block a user