Changeset 2384 for trunk/packages/vizservers/nanoscale/server2.c
- Timestamp:
- Aug 16, 2011, 10:30:54 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanoscale/server2.c
r2383 r2384 327 327 exit(1); 328 328 } 329 signal(SIGPIPE, SIG_IGN); 329 330 #ifdef SA_NOCLDWAIT 330 331 memset(&action, 0, sizeof(action)); 331 332 action.sa_flags = SA_NOCLDWAIT; 332 #endif333 signal(SIGPIPE, SIG_IGN);334 #ifdef SA_NOCLDWAIT335 333 sigaction(SIGCHLD, &action, 0); 336 334 #else … … 418 416 dup2(f, 1); /* Stdout */ 419 417 errFd = open("/dev/null", O_WRONLY, 0600); 420 dup2(errFd, 2); 418 dup2(errFd, 2); /* Stderr */ 421 419 for(i = 3; i <= FD_SETSIZE; i++) { 422 420 close(i); /* Close all the other descriptors. */
Note: See TracChangeset
for help on using the changeset viewer.