summaryrefslogtreecommitdiffstats
path: root/util/reaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/reaper.c')
-rw-r--r--util/reaper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/reaper.c b/util/reaper.c
index 9ed1b11f..633a4c78 100644
--- a/util/reaper.c
+++ b/util/reaper.c
@@ -1,4 +1,4 @@
-/* $Id: reaper.c,v 1.3 2002/11/02 11:02:44 in2 Exp $ */
+/* $Id: reaper.c,v 1.4 2003/07/20 00:55:34 in2 Exp $ */
#define _UTIL_C_
#include "bbs.h"
@@ -46,11 +46,13 @@ int check(int n, userec_t *u) {
return 0;
}
-int main() {
+int main(int argc, char **argv)
+{
now = time(NULL);
openlog("reaper", LOG_PID | LOG_PERROR, SYSLOG_FACILITY);
chdir(BBSHOME);
-
+
+ attach_SHM();
if(passwd_mmap())
exit(1);
passwd_apply2(check);