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);
|
||||
WriteEvent("Send SIGINT " + process.Id);
|
||||
WriteEvent("Send SIGINT " + pid);
|
||||
bool successful = SigIntHelper.SendSIGINTToProcess(proc,descriptor.StopTimeout);
|
||||
if (successful)
|
||||
{
|
||||
WriteEvent("SIGINT to" + process.Id + " successful");
|
||||
WriteEvent("SIGINT to" + pid + " successful");
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
WriteEvent("SIGINT to " + process.Id + " failed - Killing as fallback");
|
||||
WriteEvent("SIGINT to " + pid + " failed - Killing as fallback");
|
||||
proc.Kill();
|
||||
}
|
||||
catch (ArgumentException)
|
||||
|
|
Loading…
Reference in New Issue