From 755ae5b84f4b0806e339a6e1503406bf43028fd5 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 31 Mar 2006 09:39:08 +0200 Subject: Cut-and-paste considered harmful. --- bitlbee.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitlbee.c') diff --git a/bitlbee.c b/bitlbee.c index 47064382..3aca30c5 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 -- cgit v1.2.3