From c065f36bc154eb01e03f82f426cfb2e1b57ce40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 28 Feb 2008 21:19:24 +0000 Subject: [PATCH] r2136@chromobil: stefan | 2008-02-28 22:18:14 +0100 Fix sending source of cgi script instead of 500 error if fork fails git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2107 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/mod_cgi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index d17ceaa2..365d9275 100644 --- a/NEWS +++ b/NEWS @@ -45,6 +45,7 @@ NEWS * remove compress cache file if compression or write failed (#1150) * fixed body handling of status 300 requests * spawn-fcgi: only try to connect to unix socket (not tcp) before spawning (#1575) + * fix sending source of cgi script instead of 500 error if fork fails - 1.4.18 - 2007-09-09 diff --git a/src/mod_cgi.c b/src/mod_cgi.c index 01608f44..82ae78b6 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -1004,6 +1004,7 @@ static int cgi_create_env(server *srv, connection *con, plugin_data *p, buffer * case -1: /* error */ log_error_write(srv, __FILE__, __LINE__, "ss", "fork failed:", strerror(errno)); + return -1; break; default: { handler_ctx *hctx;