use ucontext definition from bolts::os::unix_signals (#612)
This commit is contained in:
parent
1690dbb2cc
commit
b0dd25ee95
@ -23,7 +23,7 @@ use alloc::boxed::Box;
|
|||||||
use std::intrinsics::transmute;
|
use std::intrinsics::transmute;
|
||||||
|
|
||||||
#[cfg(all(feature = "std", unix))]
|
#[cfg(all(feature = "std", unix))]
|
||||||
use libc::{siginfo_t, ucontext_t};
|
use libc::siginfo_t;
|
||||||
|
|
||||||
#[cfg(all(feature = "std", unix))]
|
#[cfg(all(feature = "std", unix))]
|
||||||
use nix::{
|
use nix::{
|
||||||
@ -42,7 +42,7 @@ use crate::bolts::shmem::ShMemProvider;
|
|||||||
use windows::Win32::System::Threading::SetThreadStackGuarantee;
|
use windows::Win32::System::Threading::SetThreadStackGuarantee;
|
||||||
|
|
||||||
#[cfg(all(feature = "std", unix))]
|
#[cfg(all(feature = "std", unix))]
|
||||||
use crate::bolts::os::unix_signals::{Handler, Signal};
|
use crate::bolts::os::unix_signals::{ucontext_t, Handler, Signal};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
events::{EventFirer, EventRestarter},
|
events::{EventFirer, EventRestarter},
|
||||||
@ -1546,14 +1546,14 @@ where
|
|||||||
/// signal handlers and `panic_hooks` for the child process
|
/// signal handlers and `panic_hooks` for the child process
|
||||||
#[cfg(all(feature = "std", unix))]
|
#[cfg(all(feature = "std", unix))]
|
||||||
pub mod child_signal_handlers {
|
pub mod child_signal_handlers {
|
||||||
use libc::{siginfo_t, ucontext_t};
|
use libc::siginfo_t;
|
||||||
use std::panic;
|
use std::panic;
|
||||||
|
|
||||||
use super::InProcessForkExecutorGlobalData;
|
use super::InProcessForkExecutorGlobalData;
|
||||||
|
|
||||||
use super::FORK_EXECUTOR_GLOBAL_DATA;
|
use super::FORK_EXECUTOR_GLOBAL_DATA;
|
||||||
use crate::{
|
use crate::{
|
||||||
bolts::os::unix_signals::Signal,
|
bolts::os::unix_signals::{ucontext_t, Signal},
|
||||||
executors::{ExitKind, HasObservers},
|
executors::{ExitKind, HasObservers},
|
||||||
inputs::Input,
|
inputs::Input,
|
||||||
observers::ObserversTuple,
|
observers::ObserversTuple,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user