From f5c0fba259e8fef9d9d2b6f6e4af82002313ef7f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 11 Aug 2001 03:51:56 +0000 Subject: [PATCH] * Removed the idle timer from the client. Dialup is dead. --- citadel/ChangeLog | 4 ++++ citadel/commands.c | 5 ----- citadel/sysconfig.h | 11 +---------- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 6b8a7553d..996b9b66f 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 580.21 2001/08/11 03:51:56 ajc + * Removed the idle timer from the client. Dialup is dead. + Revision 580.20 2001/08/06 21:33:29 nbryant made the client fall back on port 504 if there's no /etc/services entry @@ -2662,3 +2665,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/commands.c b/citadel/commands.c index 75399ca1b..e4353ca89 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -448,11 +448,6 @@ int inkey(void) tv.tv_usec = 0; time(&now); - if (((now - start_time) > SLEEPING) - && (SLEEPING != 0) && (getppid() == 1)) { - printf("Sleeping? Call again.\n"); - logoff(SIGALRM); - } select(1, &rfds, NULL, NULL, &tv); } while (!FD_ISSET(0, &rfds)); diff --git a/citadel/sysconfig.h b/citadel/sysconfig.h index 4bbf9faa7..cc87725bc 100644 --- a/citadel/sysconfig.h +++ b/citadel/sysconfig.h @@ -28,17 +28,8 @@ */ #define CHATLOG "chat.log" -/* - * SLEEPING refers to the watchdog timer. If a user sits idle without typing - * anything for this number of seconds, the session will automatically be - * logged out. Set it to zero to disable this feature. - * Note: the watchdog timer only functions when the parent is 1 (init) - in - * other words, only if Citadel is the login shell. - */ -#define SLEEPING 180 - /* - * S_KEEPALIVE is also a watchdog timer, except it is used to send "keep + * S_KEEPALIVE is a watchdog timer. It is used to send "keep * alive" messages to the server to prevent the server from assuming the * client is dead and terminating the session. 30 seconds is the recommended * value; I can't think of any good reason to change it. -- 2.30.2