Hi there,
it seems that child.wait() is ignored when
print "Server running [PID %s]"%(child.pi d)
fpid.write(chil d.pid)
are between the process creation child = Popen(cmd.split (),
stderr=flog) and child.wait().
It seems to be a bug, doesn't it ?
Mathieu
(I'm running x11vnv with args in the cmd string on FreeBSD 8.0/CURRENT)
flog = open(logfile, 'w')
fpid = open(pidfile, 'w')
try:
child = Popen(cmd.split (), stderr=flog)
print "Server running [PID %s]"%(child.pi d)
fpid.write(chil d.pid)
child.wait()
except KeyboardInterru pt:
print "INT sent to vnc server"
finally:
fpid.close()
flog.close()
os.remove(pidfi le)
os.remove(logfi le)
sys.exit(0)
it seems that child.wait() is ignored when
print "Server running [PID %s]"%(child.pi d)
fpid.write(chil d.pid)
are between the process creation child = Popen(cmd.split (),
stderr=flog) and child.wait().
It seems to be a bug, doesn't it ?
Mathieu
(I'm running x11vnv with args in the cmd string on FreeBSD 8.0/CURRENT)
flog = open(logfile, 'w')
fpid = open(pidfile, 'w')
try:
child = Popen(cmd.split (), stderr=flog)
print "Server running [PID %s]"%(child.pi d)
fpid.write(chil d.pid)
child.wait()
except KeyboardInterru pt:
print "INT sent to vnc server"
finally:
fpid.close()
flog.close()
os.remove(pidfi le)
os.remove(logfi le)
sys.exit(0)
Comment