public static int SendSignal(int pid, Signum sig)
{
switch (PlatformIdentifier)
{
case PlatformID.Unix:
return kill(pid, sig);
case PlatformID.Win32NT:
switch (sig)
{
case Signum.SIGINT:
return SendCtrlC();
default:
throw new NotImplementedException();
}
default:
throw new NotImplementedException();
}
}