Browse Source

- 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
svn/tags/lighttpd-1.4.20
Elan Ruusamäe 14 years ago
parent
commit
f08ffad238
  1. 5
      src/spawn-fcgi.c

5
src/spawn-fcgi.c

@ -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…
Cancel
Save