Browse Source

bugfix restart service options

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@20 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
jjasper4 17 years ago
parent
commit
fe0ceb5e79
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Main.cs

+ 5 - 3
Main.cs

@@ -452,9 +452,11 @@ namespace winsw
             }
             else
             {
-                stoparguments += " " + descriptor.Arguments;
-
-                StartProcess(new Process(), stoparguments);
+                stoparguments += " " + descriptor.Arguments;
+
+                Process stopProcess = new Process();
+                StartProcess(stopProcess, stoparguments);
+                stopProcess.WaitForExit();
             }
         }