Changeset 2199
- Timestamp:
- 07/14/2008 03:45:43 PM (8 weeks ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
NEWS (modified) (1 diff)
-
src/spawn-fcgi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r2169 r2199 30 30 * fix dependencies of the parser files in the Makefile 31 31 * fix server.kbytes-per-second (#1102) 32 * let spawn-fcgi propagate exit code from spawned fcgi application 32 33 33 34 - 1.5.0-r19.. - -
trunk/src/spawn-fcgi.c
r2197 r2199 44 44 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) { 45 45 int fcgi_fd; 46 int socket_type, status ;46 int socket_type, status, rc = 0; 47 47 struct timeval tv = { 0, 100 * 1000 }; 48 48 … … 232 232 fprintf(stderr, "%s.%d: child exited with: %d\n", 233 233 __FILE__, __LINE__, WEXITSTATUS(status)); 234 rc = WEXITSTATUS(status); 234 235 } else if (WIFSIGNALED(status)) { 235 236 fprintf(stderr, "%s.%d: child signaled: %d\n", 236 237 __FILE__, __LINE__, 237 238 WTERMSIG(status)); 239 rc = 1; 238 240 } else { 239 241 fprintf(stderr, "%s.%d: child died somehow: %d\n", 240 242 __FILE__, __LINE__, 241 243 status); 244 rc = status; 242 245 } 243 246 } … … 256 259 close(fcgi_fd); 257 260 258 return 0;261 return rc; 259 262 } 260 263

