Changeset 2198 for branches/lighttpd-1.4.x
- Timestamp:
- 07/14/2008 03:45:05 PM (8 weeks ago)
- Location:
- branches/lighttpd-1.4.x
- Files:
-
- 2 modified
-
NEWS (modified) (1 diff)
-
src/spawn-fcgi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/NEWS
r2192 r2198 27 27 * Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places (#624) 28 28 * merge spawn-fcgi changes from trunk (from @2191) 29 * let spawn-fcgi propagate exit code from spawned fcgi application 29 30 30 31 - 1.4.19 - 2008-03-10 -
branches/lighttpd-1.4.x/src/spawn-fcgi.c
r2196 r2198 40 40 int fcgi_spawn_connection(char *appPath, char **appArgv, char *addr, unsigned short port, const char *unixsocket, int fork_count, int child_count, int pid_fd, int nofork) { 41 41 int fcgi_fd; 42 int socket_type, status ;42 int socket_type, status, rc = 0; 43 43 struct timeval tv = { 0, 100 * 1000 }; 44 44 … … 228 228 fprintf(stderr, "%s.%d: child exited with: %d\n", 229 229 __FILE__, __LINE__, WEXITSTATUS(status)); 230 rc = WEXITSTATUS(status); 230 231 } else if (WIFSIGNALED(status)) { 231 232 fprintf(stderr, "%s.%d: child signaled: %d\n", 232 233 __FILE__, __LINE__, 233 234 WTERMSIG(status)); 235 rc = 1; 234 236 } else { 235 237 fprintf(stderr, "%s.%d: child died somehow: %d\n", 236 238 __FILE__, __LINE__, 237 239 status); 240 rc = status; 238 241 } 239 242 } … … 252 255 close(fcgi_fd); 253 256 254 return 0;257 return rc; 255 258 } 256 259

