From 5cafff4776567836b5b3e7357705b368aa4df7d7 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Mon, 26 Sep 2005 12:30:18 +0000 Subject: [PATCH] print bin-path if a fastcgi-binary exits at spawning time and us %lld for long long int git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@746 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_fastcgi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c index 78cfff84..c8d88066 100644 --- a/src/mod_fastcgi.c +++ b/src/mod_fastcgi.c @@ -914,9 +914,9 @@ static int fcgi_spawn_connection(server *srv, default: /* the child should not terminate at all */ if (WIFEXITED(status)) { - log_error_write(srv, __FILE__, __LINE__, "sd", - "child exited:", - WEXITSTATUS(status)); + log_error_write(srv, __FILE__, __LINE__, "sdb", + "child exited with status", + WEXITSTATUS(status), host->bin_path); log_error_write(srv, __FILE__, __LINE__, "s", "if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.\n" "You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' " @@ -1831,7 +1831,7 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) { hctx->wb->bytes_in += sizeof(header); if (p->conf.debug > 10) { - fprintf(stderr, "%s.%d: tosend: %d / %Ld\n", __FILE__, __LINE__, offset, req_cq->bytes_in); + fprintf(stderr, "%s.%d: tosend: %d / %lld\n", __FILE__, __LINE__, offset, req_cq->bytes_in); } for (written = 0; written != weWant; ) { @@ -1846,7 +1846,7 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) { if (weHave > weWant - written) weHave = weWant - written; if (p->conf.debug > 10) { - fprintf(stderr, "%s.%d: sending %d bytes from (%Ld / %Ld) %s\n", + fprintf(stderr, "%s.%d: sending %d bytes from (%lld / %lld) %s\n", __FILE__, __LINE__, weHave, req_c->offset,