aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 752ed659..cca14916 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -110,8 +110,8 @@ int bitlbee_daemon_init()
/* Sometimes std* are already closed (for example when we're in a RESTARTed
BitlBee process. So let's only close TTY-fds. */
if( isatty( 0 ) ) close( 0 );
- if( isatty( 0 ) ) close( 1 );
- if( isatty( 0 ) ) close( 2 );
+ if( isatty( 1 ) ) close( 1 );
+ if( isatty( 2 ) ) close( 2 );
}
#endif