|
|
@@ -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();
|
|
|
}
|
|
|
}
|
|
|
|