File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
.vscode/cspell.dictionaries Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -268,3 +268,4 @@ Nofile
268268rprocess
269269statat
270270getdents
271+ SIGTHR
Original file line number Diff line number Diff line change @@ -1093,7 +1093,16 @@ where
10931093 let Ok ( sig) = signal_from_value ( sig_value) else {
10941094 return Ok ( ( ) ) ;
10951095 } ;
1096- signal_fn ( sig) ?;
1096+ match signal_fn ( sig) {
1097+ Ok ( ( ) ) => { }
1098+ Err ( _) if !explicit => {
1099+ // When applying to all signals, silently skip signals that
1100+ // the OS refuses to change (e.g. SIGTHR on OpenBSD).
1101+ // GNU env also ignores these.
1102+ return Ok ( ( ) ) ;
1103+ }
1104+ Err ( e) => return Err ( e) ,
1105+ }
10971106 log. record ( sig_value, action_kind, explicit) ;
10981107
10991108 // Set environment variable to communicate to Rust child processes
You can’t perform that action at this time.
0 commit comments