Closed GoogleCodeExporter closed 9 years ago
I think I know what's happening. It may be that the delay time to wait for the
process to report back may be too small.
Can you modify the script gal.py on line 102 to increase the sleep time to 5
seconds to help me verify the issue?
#start the monitored processes
for cmd_line in monitored_launch:
p = Popen(shlex.split(cmd_line),stdin=fnull, stdout=fnull, stderr=fnull)
sleep(1) ##*<-------- Increase this value*
cpl = json.loads(server.pid_list()) #get the current pid list
npl = list(set(epl) ^ set(cpl)) #find the new pid(s)
epl = cpl #update the existing pid list
monitor.update({npl[0]:{'cmd':cmd_line,'process':p}}) #store the pid/cmd_line/process
print "Monitored Process Launched (PID:",npl[0],"CMD:",cmd_line,")"
Original comment by brian.mo...@gmail.com
on 2 Jan 2012 at 7:13
I updated the code on the repo to include a default monitored process launch
timeout of 20 seconds. If this fixes your issue let me know and I'll close the
issue as verified.
Original comment by brian.mo...@gmail.com
on 2 Jan 2012 at 7:38
I apologize for the late answer. Indeed, it does work now :)
Original comment by purge...@gmail.com
on 9 Jan 2012 at 8:59
Original issue reported on code.google.com by
purge...@gmail.com
on 28 Dec 2011 at 3:45