aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-03-31 09:39:08 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-03-31 09:39:08 +0200
commit755ae5b84f4b0806e339a6e1503406bf43028fd5 (patch)
treed63da1d5fe498f0ac78ec8384e4d8306c620c717 /bitlbee.c
parent192b80a1175690187be4bad30c36d286f8e63eb0 (diff)
Cut-and-paste considered harmful.
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 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