File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ edition = "2021"
13
13
rust-version = " 1.63"
14
14
15
15
[target .'cfg(unix)' .dependencies ]
16
- libc = " 0.2.87 "
16
+ libc = " 0.2.171 "
17
17
18
18
[target .'cfg(unix)' .dev-dependencies ]
19
19
nix = { version = " 0.28.0" , features = [" fs" ] }
Original file line number Diff line number Diff line change @@ -394,14 +394,7 @@ pub(crate) fn spawn_helper(
394
394
let mut err = None ;
395
395
USR1_INIT . call_once ( || unsafe {
396
396
let mut new: libc:: sigaction = mem:: zeroed ( ) ;
397
- #[ cfg( target_os = "aix" ) ]
398
- {
399
- new. sa_union . __su_sigaction = sigusr1_handler;
400
- }
401
- #[ cfg( not( target_os = "aix" ) ) ]
402
- {
403
- new. sa_sigaction = sigusr1_handler as usize ;
404
- }
397
+ new. sa_sigaction = sigusr1_handler as usize ;
405
398
new. sa_flags = libc:: SA_SIGINFO as _ ;
406
399
if libc:: sigaction ( libc:: SIGUSR1 , & new, ptr:: null_mut ( ) ) != 0 {
407
400
err = Some ( io:: Error :: last_os_error ( ) ) ;
You can’t perform that action at this time.
0 commit comments