- 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:
parent
5fa895e8ec
commit
f08ffad238
|
@ -225,9 +225,8 @@ int fcgi_spawn_connection(char *appPath, char **appArgv, char *addr, unsigned sh
|
|||
break;
|
||||
default:
|
||||
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__,
|
||||
|
|
Loading…
Reference in New Issue