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