public PythonSignalState(PythonContext pc) { SignalPythonContext = pc; WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler); PySignalToPyHandler = new Dictionary <int, object>() { { SIGABRT, SIG_DFL }, { SIGBREAK, SIG_DFL }, { SIGFPE, SIG_DFL }, { SIGILL, SIG_DFL }, { SIGINT, default_int_handler }, { SIGSEGV, SIG_DFL }, { SIGTERM, SIG_DFL }, }; }
public PythonSignalState(PythonContext pc) { SignalPythonContext = pc; WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler); PySignalToPyHandler = new Dictionary<int, object>() { { SIGABRT, SIG_DFL}, { SIGBREAK, SIG_DFL}, { SIGFPE, SIG_DFL}, { SIGILL, SIG_DFL}, { SIGINT, default_int_handler}, { SIGSEGV, SIG_DFL}, { SIGTERM, SIG_DFL}, }; }
public NtSignalState(PythonContext pc) : base(pc) { WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler); NativeSignal.SetConsoleCtrlHandler(this.WinAllSignalsHandlerDelegate, true); }
public NtSignalState(PythonContext pc) : base(pc) { WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler); NativeSignal.SetConsoleCtrlHandler(this.WinAllSignalsHandlerDelegate, true); }