From c6c61ceb5e89641236b228db7222c932c505e3e0 Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 17 Dec 2007 17:13:51 +0000 Subject: Fix issue with paste.cgiapp and mod_wsgi (#210) --- paste/cgiapp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'paste/cgiapp.py') diff --git a/paste/cgiapp.py b/paste/cgiapp.py index 67f2654..c21ee95 100644 --- a/paste/cgiapp.py +++ b/paste/cgiapp.py @@ -247,7 +247,11 @@ def proc_communicate(proc, stdin=None, stdout=None, stderr=None): data = proc._translate_newlines(data) stderr.write(data) - proc.wait() + try: + proc.wait() + except OSError, e: + if e.errno != 10: + raise def make_cgi_application(global_conf, script, path=None, include_os_environ=None, query_string=None): -- cgit v1.2.1