diff --git a/mbtask/mbtask.c b/mbtask/mbtask.c index 87ba3ac7..c6b4b281 100644 --- a/mbtask/mbtask.c +++ b/mbtask/mbtask.c @@ -47,7 +47,6 @@ */ #define MAXTASKS 10 #define SLOWRUN 20 -#define PAUSETIME 3 #define TMPNAME "TMP." #define LCKNAME "LOCKTASK" #define ICMP_BASEHDR_LEN 8 diff --git a/mbtask/taskstat.c b/mbtask/taskstat.c index 39591b7f..dcffb0aa 100644 --- a/mbtask/taskstat.c +++ b/mbtask/taskstat.c @@ -1,8 +1,7 @@ /***************************************************************************** * - * File ..................: mbtask/taskstat.c + * $Id$ * Purpose ...............: Keep track of server status - * Last modification date : 31-Oct-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -49,6 +48,7 @@ int s_msglink = FALSE; int s_newnews = FALSE; int s_bbsopen = FALSE; extern int UPSalarm; +extern int ptimer; @@ -336,8 +336,6 @@ char *getseq(void) int sem_set(char *sem, int value) { - int rc = TRUE; - tasklog('s', "sem_set(%s, %s)", sem, value?"TRUE":"FALSE"); if (!strcmp(sem, "scanout")) { @@ -358,9 +356,10 @@ int sem_set(char *sem, int value) } else if (!strcmp(sem, "reqindex")) { s_reqindex = value; } else { - rc = FALSE; + return FALSE; } - return rc; + ptimer = PAUSETIME; + return TRUE; } diff --git a/mbtask/taskstat.h b/mbtask/taskstat.h index bc2e84e8..21f0540b 100644 --- a/mbtask/taskstat.h +++ b/mbtask/taskstat.h @@ -1,6 +1,10 @@ +/* $Id$ */ + #ifndef _TASKSTAT_H #define _TASKSTAT_H +#define PAUSETIME 3 + void status_init(void); /* Initialize status module */ void stat_inc_clients(void); /* Increase connected clients */ void stat_dec_clients(void); /* Decrease connected clients */