exit on failure to create fifo

This commit is contained in:
Ronald Schaten 2010-11-01 12:18:56 +01:00
parent 80ca8f798a
commit fd3df9e472

View File

@ -176,6 +176,7 @@ if __name__ == '__main__':
os.mkfifo(fifoname) os.mkfifo(fifoname)
except OSError, e: except OSError, e:
print 'Failed to create FIFO: "%s"' % e print 'Failed to create FIFO: "%s"' % e
sys.exit()
child_pid = 0 child_pid = 0
print 'parent: PID %s' % os.getpid() print 'parent: PID %s' % os.getpid()