Commit 0a5b4732 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Add process for debugging.

Add debugging messages to ulg.py around new worker process forking.
parent 0785532b
......@@ -510,10 +510,14 @@ class ULGCgi:
os.dup2(devnull.fileno(),sys.stderr.fileno())
# run the command
ulgmodel.debug("Running in a forked process...")
commandThreadBody(session,self.decreaseUsage)
ulgmodel.debug("Forked process finished...")
# exit the child
sys.exit(0)
else:
ulgmodel.debug("Forked a new process PID: "+str(child_pid))
else:
# directly run the selected action, DEPRECATED
......
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