summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 11:35:07 +0800
committerbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 11:35:07 +0800
commitf400bfaa42cd66718b9035d658407690b591a338 (patch)
tree888ddd77107e50a1d420da696e4f4a665399a065 /util
parent5b1545cbda010c4092992d60e1a2ca2a1cff672f (diff)
downloadpttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar.gz
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar.bz2
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar.lz
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar.xz
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.tar.zst
pttbbs-f400bfaa42cd66718b9035d658407690b591a338.zip
OUTTA_TIMER
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@823 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 04f5b112..ac9cb15b 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -1,4 +1,4 @@
-/* $Id: shmctl.c,v 1.39 2003/04/10 18:05:45 in2 Exp $ */
+/* $Id: shmctl.c,v 1.40 2003/05/07 03:35:07 bbs Exp $ */
#include "bbs.h"
#include <sys/wait.h>
@@ -275,6 +275,9 @@ int utmpsortd(int argc, char **argv)
else{
while( 1 ){
int i;
+#ifdef OUTTA_TIMER
+ SHM->GV2.e.now = time(NULL);
+#endif
for( i = 0 ; SHM->UTMPbusystate && i < 5 ; ++i )
usleep(300000);