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); }
private static extern int sigaction(int signum, ref SigActionData action, IntPtr blah);