Commit f6518b39 authored by Fardale's avatar Fardale

correction server.py

parent 5fd2c24b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import common import common
import http.server import http.server
import subprocess import subprocess
import sys import sys,os,pwd,grp
import argparse import argparse
def ssh(host, command): def ssh(host, command):
...@@ -39,7 +39,7 @@ if __name__ == "__main__": ...@@ -39,7 +39,7 @@ if __name__ == "__main__":
if pid > 0: if pid > 0:
# exit first parent # exit first parent
sys.exit(0) sys.exit(0)
except OSError, e: except OSError as e:
print("fork #1 failed: %d (%s)" % (e.errno, e.strerror),file=sys.stderr) print("fork #1 failed: %d (%s)" % (e.errno, e.strerror),file=sys.stderr)
sys.exit(1) sys.exit(1)
...@@ -56,7 +56,7 @@ if __name__ == "__main__": ...@@ -56,7 +56,7 @@ if __name__ == "__main__":
#print "Daemon PID %d" % pid #print "Daemon PID %d" % pid
open(common.PIDFILE, 'w').write("%d" % pid) open(common.PIDFILE, 'w').write("%d" % pid)
sys.exit(0) sys.exit(0)
except OSError, e: except OSError as e:
print("fork #2 failed: %d (%s)" % (e.errno, e.strerror),file=sys.stderr) print("fork #2 failed: %d (%s)" % (e.errno, e.strerror),file=sys.stderr)
sys.exit(1) sys.exit(1)
......
...@@ -23,6 +23,10 @@ To compile and run: ...@@ -23,6 +23,10 @@ To compile and run:
Terminal version : Terminal version :
make buildplay-term make buildplay-term
To launch test :
make test
################### HOW TO PLAY ################### ################### HOW TO PLAY ###################
1)Launch the game. 1)Launch the game.
...@@ -107,4 +111,4 @@ The following people were the developers : ...@@ -107,4 +111,4 @@ The following people were the developers :
-Ringeade Clément -Ringeade Clément
-Toussaint Etienne -Toussaint Etienne
-Thomas Colin -Thomas Colin
-Ursu Bogdan -Ursu Bogdan
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment