예제 #1
0
 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 },
     };
 }
예제 #2
0
파일: signal.cs 프로젝트: jschementi/iron
 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},
     };
 }
예제 #3
0
 public NtSignalState(PythonContext pc) : base(pc)
 {
     WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler);
     NativeSignal.SetConsoleCtrlHandler(this.WinAllSignalsHandlerDelegate, true);
 }
예제 #4
0
 public NtSignalState(PythonContext pc) : base(pc) {
     WinAllSignalsHandlerDelegate = new NativeSignal.WinSignalsHandler(WindowsEventHandler);
     NativeSignal.SetConsoleCtrlHandler(this.WinAllSignalsHandlerDelegate, true);
 }