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.
2 parents c9b5c79 + 89b1348 commit 23c7fa6Copy full SHA for 23c7fa6
src/unix.rs
@@ -243,7 +243,14 @@ pub(crate) fn spawn_helper(
243
let mut err = None;
244
USR1_INIT.call_once(|| unsafe {
245
let mut new: libc::sigaction = mem::zeroed();
246
- new.sa_sigaction = sigusr1_handler as usize;
+ #[cfg(target_os = "aix")]
247
+ {
248
+ new.sa_union.__su_sigaction = sigusr1_handler;
249
+ }
250
+ #[cfg(not(target_os = "aix"))]
251
252
+ new.sa_sigaction = sigusr1_handler as usize;
253
254
new.sa_flags = libc::SA_SIGINFO as _;
255
if libc::sigaction(libc::SIGUSR1, &new, ptr::null_mut()) != 0 {
256
err = Some(io::Error::last_os_error());
0 commit comments