Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.Threading;
using Mono.Unix;
using Mono.Unix.Native;
class Test {
static void Main ()
Console.WriteLine("Press any key to exit...");
static void StartHandler()
new Thread(TerminateHandler).Start();
static void TerminateHandler()
Console.WriteLine("Initializing Handler for SIGINT");
UnixSignal signal = new UnixSignal(Signum.SIGINT);
Console.WriteLine("Control-C Pressed!");
Console.WriteLine("handler Terminated");

This comment has been minimized.

Copy link

commented Jun 12, 2019

What about if I want to handle multiple instances of the same signal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.