mirror of https://github.com/winsw/winsw
parent
6250a2755b
commit
d0d4266af2
6
Main.cs
6
Main.cs
|
@ -312,17 +312,17 @@ namespace winsw
|
||||||
}
|
}
|
||||||
|
|
||||||
var proc = Process.GetProcessById(pid);
|
var proc = Process.GetProcessById(pid);
|
||||||
WriteEvent("Send SIGINT " + process.Id);
|
WriteEvent("Send SIGINT " + pid);
|
||||||
bool successful = SigIntHelper.SendSIGINTToProcess(proc,descriptor.StopTimeout);
|
bool successful = SigIntHelper.SendSIGINTToProcess(proc,descriptor.StopTimeout);
|
||||||
if (successful)
|
if (successful)
|
||||||
{
|
{
|
||||||
WriteEvent("SIGINT to" + process.Id + " successful");
|
WriteEvent("SIGINT to" + pid + " successful");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
WriteEvent("SIGINT to " + process.Id + " failed - Killing as fallback");
|
WriteEvent("SIGINT to " + pid + " failed - Killing as fallback");
|
||||||
proc.Kill();
|
proc.Kill();
|
||||||
}
|
}
|
||||||
catch (ArgumentException)
|
catch (ArgumentException)
|
||||||
|
|
Loading…
Reference in New Issue