[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-c4023f1b3aa9svn/tags/lighttpd-1.4.29
parent
c66d21bc2b
commit
8cdf9cc767
1
NEWS
1
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)
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#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) {
|
||||
|
|
Loading…
Reference in New Issue