From: caremoli Date: Wed, 26 Sep 2007 08:38:28 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ee5debadd690ca9336334a491d48a1155101177b;p=modules%2Fkernel.git *** empty log message *** --- diff --git a/bin/server.py b/bin/server.py index 4c3554572..5bd61799d 100755 --- a/bin/server.py +++ b/bin/server.py @@ -89,4 +89,8 @@ class Server: #I am a daemon os.close(0) #close stdin os.open("/dev/null", os.O_RDWR) # redirect standard input (0) to /dev/null - os.execvp(args[0], args) + try: + os.execvp(args[0], args) + except OSError, e: + print >>sys.stderr, "(%s) launch failed: %d (%s)" % (args[0],e.errno, e.strerror) + os._exit(127)