You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show error message when processes are killed by SIGSEGV/SIGILL/etc #12874
With #12774 we now properly pull out the signal but don't report the error as mentioned here (I think we had code for that at some point.) The $env.LAST_EXIT_CODE contains the signal value in negated form (which I think is not the conventional form. If I recall on Linux it is signal value + 128?)
Does nushell not use std::process::Command? If so, the signal is available with .signal() under the ExitSignalExt trait (which calls libc::WIFSIGNALED(self.0).then(|| libc::WTERMSIG(self.0)) internally)
Activity
sholderbach commentedon May 15, 2024
Related challenge #12369 (not a duplicate)
@IanManske built some parts to potentially fix this in #12774 if I recall, I tried some things in #12370 but that did not work yet.
sholderbach commentedon May 16, 2024
With #12774 we now properly pull out the signal but don't report the error as mentioned here (I think we had code for that at some point.) The
$env.LAST_EXIT_CODEcontains the signal value in negated form (which I think is not the conventional form. If I recall on Linux it is signal value + 128?)tgross35 commentedon May 16, 2024
Does nushell not use
std::process::Command? If so, the signal is available with.signal()under theExitSignalExttrait (which callslibc::WIFSIGNALED(self.0).then(|| libc::WTERMSIG(self.0))internally)fix: coredump without any messages (#13034)
IanManske commentedon Jun 22, 2024
#13034 only handles core dumps, not signals in general.
Error on non-zero exit statuses (nushell#13515)