From 8cdf9cc7676011e621e59a89e42055c57db9777a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 12 Jun 2011 15:44:26 +0000 Subject: [PATCH] [proc,include_shell] log error if exec shell fails (fixes #2280) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2793 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/proc_open.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 9abf6b3b..0f70221a 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ NEWS load all algorithms (fixes #2239) * [ssl/md5] prefix our own md5 implementation with li_ so it doesn't conflict with the openssl one (fixes #2269) * [ssl/build] some minor fixes; fix compile without ssl, cleanup ssl config buffers + * [proc,include_shell] log error if exec shell fails (fixes #2280) - 1.4.28 - 2010-08-22 * Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers. (fixes #2249) diff --git a/src/proc_open.c b/src/proc_open.c index eb9dbdd9..3c065d00 100644 --- a/src/proc_open.c +++ b/src/proc_open.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #ifdef WIN32 @@ -257,6 +258,7 @@ int proc_open(proc_handler_t *proc, const char *command) { proc_close_parents(proc); execl(shell, shell, "-c", command, (char *)NULL); + fprintf(stderr, "failed to execute shell: %s -c %s: %s\n", shell, command, strerror(errno)); _exit(127); } else if (child < 0) {