diff options
author | axel <axel@liljencrantz.se> | 2005-11-28 09:22:08 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-11-28 09:22:08 +1000 |
commit | bda7948719555dd7745a416d79aa7e21a252fbdb (patch) | |
tree | 04c80e052808cf612be9584054d395f5294c1c0c /fishd.c | |
parent | e800fca499a537c0c57e7e504ed2a4ceff91fda4 (diff) |
Make sure fishd synchronization happens only when needed
darcs-hash:20051127232208-ac50b-927157fb9b5d3e44981f9ec029735531ae59fd61.gz
Diffstat (limited to 'fishd.c')
-rw-r--r-- | fishd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -269,7 +269,7 @@ static void daemonize() case 0: { /* - Make fish ignore the HUP signal. + Make fishd ignore the HUP signal. */ struct sigaction act; sigemptyset( & act.sa_mask ); @@ -285,12 +285,12 @@ static void daemonize() exit(0); } } - + /* Put ourself in out own processing group */ setsid(); - + /* Close stdin and stdout. We only use stderr, anyway. */ @@ -427,7 +427,7 @@ int main( int argc, char ** argv ) wperror( L"select" ); exit(1); } - + if( FD_ISSET( sock, &read_fd ) ) { if( (child_socket = |