We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7265a11 commit 0ab7479Copy full SHA for 0ab7479
2 files changed
.vscode/cspell.dictionaries/jargon.wordlist.txt
@@ -279,3 +279,4 @@ Nofile
279
rprocess
280
statat
281
getdents
282
+SIGTHR
src/uu/env/src/env.rs
@@ -1080,7 +1080,16 @@ where
1080
let Ok(sig) = signal_from_value(sig_value) else {
1081
return Ok(());
1082
};
1083
- signal_fn(sig)?;
+ match signal_fn(sig) {
1084
+ Ok(()) => {}
1085
+ Err(_) if !explicit => {
1086
+ // When applying to all signals, silently skip signals that
1087
+ // the OS refuses to change (e.g. SIGTHR on OpenBSD).
1088
+ // GNU env also ignores these.
1089
+ return Ok(());
1090
+ }
1091
+ Err(e) => return Err(e),
1092
1093
log.record(sig_value, action_kind, explicit);
1094
1095
// Set environment variable to communicate to Rust child processes
0 commit comments