Browse Source

Cherry picking a portion of
https://github.com/gmjck/winsw/commit/602d473d78e7b69fa34d6ae08328ccc5fd94658e

Kohsuke Kawaguchi 11 years ago
parent
commit
d0d4266af2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Main.cs

+ 3 - 3
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)