File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ edition = "2021"
1313rust-version = " 1.63"
1414
1515[target .'cfg(unix)' .dependencies ]
16- libc = " 0.2.87 "
16+ libc = " 0.2.171 "
1717
1818[target .'cfg(unix)' .dev-dependencies ]
1919nix = { 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(
394394 let mut err = None ;
395395 USR1_INIT . call_once ( || unsafe {
396396 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 ;
405398 new. sa_flags = libc:: SA_SIGINFO as _ ;
406399 if libc:: sigaction ( libc:: SIGUSR1 , & new, ptr:: null_mut ( ) ) != 0 {
407400 err = Some ( io:: Error :: last_os_error ( ) ) ;
You can’t perform that action at this time.
0 commit comments