* Removed the idle timer from the client. Dialup is dead.
authorArt Cancro <ajc@citadel.org>
Sat, 11 Aug 2001 03:51:56 +0000 (03:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 11 Aug 2001 03:51:56 +0000 (03:51 +0000)
citadel/ChangeLog
citadel/commands.c
citadel/sysconfig.h

index 6b8a7553decab966de34ba764988e0f48aa5ec7f..996b9b66f3813c59d2a6a9a3d52b3433f5104f36 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 75399ca1b59fc960442cabe831f620a26c5467f6..e4353ca89b221600831dea0c0955695327d00a20 100644 (file)
@@ -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));
 
index 4bbf9faa7881c1ca3258f7a56252cd099ab2d826..cc87725bcc68dd3be47c47603b04c1ce8e158c41 100644 (file)
  */
 #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.