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 c72649d commit 002415bCopy full SHA for 002415b
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
@@ -1089,7 +1089,16 @@ where
1089
let Ok(sig) = signal_from_value(sig_value) else {
1090
return Ok(());
1091
};
1092
- signal_fn(sig)?;
+ match signal_fn(sig) {
1093
+ Ok(()) => {}
1094
+ Err(_) if !explicit => {
1095
+ // When applying to all signals, silently skip signals that
1096
+ // the OS refuses to change (e.g. SIGTHR on OpenBSD).
1097
+ // GNU env also ignores these.
1098
+ return Ok(());
1099
+ }
1100
+ Err(e) => return Err(e),
1101
1102
log.record(sig_value, action_kind, explicit);
1103
1104
// Set environment variable to communicate to Rust child processes
0 commit comments