Commit 63660e55 authored by Jim Fulton's avatar Jim Fulton

Added logic to propigate exit codes to start script (in a, sigh,

rather round-about way).
parent 4ed32e2f
......@@ -385,4 +385,7 @@ class PCGIPipe:
def finish(self,request):
if request.headers.get('bobo-exception-type','') == \
'exceptions.SystemExit':
self._shutdown=1
r=response.headers.get('bobo-exception-value','0')
try: r=string.atoi(r)
except: r = r and 1 or 0
self._shutdown=r,
......@@ -385,4 +385,7 @@ class PCGIPipe:
def finish(self,request):
if request.headers.get('bobo-exception-type','') == \
'exceptions.SystemExit':
self._shutdown=1
r=response.headers.get('bobo-exception-value','0')
try: r=string.atoi(r)
except: r = r and 1 or 0
self._shutdown=r,
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