* sysdep.c: start the housekeeping thread *after* dropping root perms.
authorArt Cancro <ajc@citadel.org>
Wed, 12 Jan 2000 03:56:27 +0000 (03:56 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 12 Jan 2000 03:56:27 +0000 (03:56 +0000)
citadel/ChangeLog
citadel/sysconfig.h
citadel/sysdep.c

index 0fab92b44be6175ef5cf30a792d0c123b4ef3381..e9632283989abcd58acff9c7692d95f4fddb5c40 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 1.439  2000/01/12 03:56:27  ajc
+* sysdep.c: start the housekeeping thread *after* dropping root perms.
+
 Revision 1.438  2000/01/09 19:03:16  ajc
 * Removed the fifo-based protocol downloads and replaced it with a less
   elegant "download temporary file to client, then sx/sb/sz" because
@@ -1532,3 +1535,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
+
index 3ce4597f87e514ffb5fca948d6931d33a2f09ebd..198f7e557144b00ffd2536dd8a8d17742de1fcee 100644 (file)
@@ -83,8 +83,8 @@
  * These define what port to listen on for various services.
  * FIX ... put this in a programmable config somewhere
  */
-#define POP3_PORT              1110
-#define SMTP_PORT              2525
+#define POP3_PORT              110
+#define SMTP_PORT              25
 
 
 /*
index add4867fece4e2558cb8aafbd098abf0bbe83364..0cd19053a53ab064009324bbe667c9e225ca615b 100644 (file)
@@ -784,16 +784,6 @@ int main(int argc, char **argv)
                free(moddir);
        }
 
-       lprintf(7, "Starting housekeeper thread\n");
-       pthread_attr_init(&attr);
-               pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
-       if (pthread_create(&HousekeepingThread, &attr,
-          (void* (*)(void*)) housekeeping_loop, NULL) != 0) {
-               lprintf(1, "Can't create housekeeping thead: %s\n",
-                       strerror(errno));
-       }
-
-
        /*
         * The rescan pipe exists so that worker threads can be woken up and
         * told to re-scan the context list for fd's to listen on.  This is
@@ -857,6 +847,19 @@ int main(int argc, char **argv)
                }
        }
 
+       /*
+        * Create the housekeeper thread
+        */
+       lprintf(7, "Starting housekeeper thread\n");
+       pthread_attr_init(&attr);
+               pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
+       if (pthread_create(&HousekeepingThread, &attr,
+          (void* (*)(void*)) housekeeping_loop, NULL) != 0) {
+               lprintf(1, "Can't create housekeeping thead: %s\n",
+                       strerror(errno));
+       }
+
+
        /*
         * Now create a bunch of worker threads.
         */