gameServer/hedgewars-server.hs
changeset 4962 705c6186ad9d
parent 4960 3b54b1c9b768
child 4968 8e1673f0dc05
--- a/gameServer/hedgewars-server.hs	Sun Feb 27 19:32:44 2011 +0300
+++ b/gameServer/hedgewars-server.hs	Sun Feb 27 20:15:09 2011 +0300
@@ -7,6 +7,7 @@
 import Control.Concurrent.Chan
 import qualified Control.Exception as E
 import System.Log.Logger
+import System.Process
 -----------------------------------
 import Opts
 import CoreTypes
@@ -43,7 +44,7 @@
 handleRestart :: ShutdownException -> IO ()
 handleRestart ShutdownException = return ()
 handleRestart RestartException = do
-    
+    _ <- createProcess (proc "./hedgewars-server" [])
     return ()
 
 main :: IO ()