- strerror() wants errno as param not arbitary exit value from spawned child

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2194 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Elan Ruusamäe 2008-07-14 14:40:52 +00:00
parent 5fa895e8ec
commit f08ffad238
1 changed files with 2 additions and 3 deletions

View File

@ -225,9 +225,8 @@ int fcgi_spawn_connection(char *appPath, char **appArgv, char *addr, unsigned sh
if (WIFEXITED(status)) {
fprintf(stderr, "%s.%d: child exited with: %d, %s\n",
__FILE__, __LINE__,
WEXITSTATUS(status), strerror(WEXITSTATUS(status)));
fprintf(stderr, "%s.%d: child exited with: %d\n",
__FILE__, __LINE__, WEXITSTATUS(status));
} else if (WIFSIGNALED(status)) {
fprintf(stderr, "%s.%d: child signaled: %d\n",
__FILE__, __LINE__,