Print errors from include_shell to stderr

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2606 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.24
Stefan Bühler 14 years ago
parent a1862cc809
commit 956b6e1924

@ -32,6 +32,7 @@ NEWS
* Remove adaptive spawning code from fastcgi (was disabled for a long time)
* Allow mod_mysql_vhost to use stored procedures (fixes #2011, thx Ben Brown)
* Fix ipv6 in mod_proxy (fixes #2043)
* Print errors from include_shell to stderr
- 1.4.23 - 2009-06-19
* Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)

@ -309,6 +309,14 @@ int proc_open_buffer(const char *command, buffer *in, buffer *out, buffer *err)
if (err) {
proc_read_fd_to_buffer(proc.err.fd, err);
} else {
buffer *tmp = buffer_init();
proc_read_fd_to_buffer(proc.err.fd, tmp);
if (tmp->used > 0 && write(2, (void*)tmp->ptr, tmp->used) < 0) {
perror("error writing pipe");
return -1;
}
buffer_free(tmp);
}
pipe_close(&proc.err);

Loading…
Cancel
Save