Cherry picking a portion of

602d473d78
pull/43/merge
Kohsuke Kawaguchi 2014-05-11 09:39:47 -07:00
parent 6250a2755b
commit d0d4266af2
1 changed files with 3 additions and 3 deletions

View File

@ -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)