From d0d4266af2a6155050a44f208722eb2b95cba2d0 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sun, 11 May 2014 09:39:47 -0700 Subject: [PATCH] Cherry picking a portion of https://github.com/gmjck/winsw/commit/602d473d78e7b69fa34d6ae08328ccc5fd94658e --- Main.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Main.cs b/Main.cs index 557d001..2912f41 100644 --- a/Main.cs +++ b/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)