From fe0ceb5e79892ea938ec1cf58c3cc3572dc4ed6d Mon Sep 17 00:00:00 2001 From: jjasper4 Date: Mon, 5 Jan 2009 21:40:01 +0000 Subject: [PATCH] bugfix restart service options git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@20 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa --- Main.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Main.cs b/Main.cs index b0c690d..939f271 100644 --- a/Main.cs +++ b/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(); } }