diff options
Diffstat (limited to 'bitlbee.c')
-rw-r--r-- | bitlbee.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -126,7 +126,6 @@ int bitlbee_daemon_init() global.listen_watch_source_id = b_input_add( global.listen_socket, B_EV_IO_READ, bitlbee_io_new_client, NULL ); -#ifndef _WIN32 if( !global.conf->nofork ) { i = fork(); @@ -150,7 +149,6 @@ int bitlbee_daemon_init() open( "/dev/null", O_WRONLY ); } } -#endif if( global.conf->runmode == RUNMODE_FORKDAEMON ) ipc_master_load_state( getenv( "_BITLBEE_RESTART_STATE" ) ); @@ -158,7 +156,6 @@ int bitlbee_daemon_init() if( global.conf->runmode == RUNMODE_DAEMON || global.conf->runmode == RUNMODE_FORKDAEMON ) ipc_master_listen_socket(); -#ifndef _WIN32 if( ( fp = fopen( global.conf->pidfile, "w" ) ) ) { fprintf( fp, "%d\n", (int) getpid() ); @@ -168,7 +165,6 @@ int bitlbee_daemon_init() { log_message( LOGLVL_WARNING, "Warning: Couldn't write PID to `%s'", global.conf->pidfile ); } -#endif if( !global.conf->nofork ) { @@ -294,7 +290,6 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition return TRUE; } -#ifndef _WIN32 if( global.conf->runmode == RUNMODE_FORKDAEMON ) { pid_t client_pid = 0; @@ -356,7 +351,6 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition } } else -#endif { log_message( LOGLVL_INFO, "Creating new connection with fd %d.", new_socket ); irc_new( new_socket ); |