예제 #1
0
        public static void RegisterHandler(Signum signal,
                                            SignalHandler handler)
        {
            handlers[signal] = handler;

            SigActionData data = new SigActionData (new SignalHandler (InternalHandler));
            sigaction ((int) signal, ref data, IntPtr.Zero);
        }
예제 #2
0
 private static extern int sigaction(int signum, ref SigActionData action, IntPtr blah);