1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 10:30:56 +00:00

Dont use signals on Windows

This commit is contained in:
Carsten Larsen
2016-09-03 01:10:32 +02:00
parent 39064f4e87
commit 2a0c140275

View File

@ -47,6 +47,10 @@ namespace Ntp.Common.System
public void Start()
{
// Signal handler is only supported on Unix platforms
if (Environment.OSVersion.Platform != PlatformID.Unix)
return;
var signalHandler = new Thread(Execute);
signalHandler.Start();
}