]> andersk Git - moira.git/blobdiff - reg_svr/startreg.c
Remove `delete_user_by_uid' since it's never been used in any logs we have,
[moira.git] / reg_svr / startreg.c
index 92d6fc6c485d9e9e120797f9041bc5b07cc0f377..5a9dfe89028ae5b75a837d9bb1647891dfec7d8f 100644 (file)
@@ -16,28 +16,28 @@ static char *rcsid_mr_starter_c = "$Header$";
 #endif lint
 
 #include <mit-copyright.h>
+#include <errno.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/wait.h>
 #include <sys/signal.h>
 #include <sys/ioctl.h>
+#include <time.h>
 #include <fcntl.h>
-#include <sys/stat.h>
 #include <sys/resource.h>
 #include <moira_site.h>
 
 #define PROG   "reg_svr"
 
 int rdpipe[2];
+extern int errno;
 
-cleanup()
+void cleanup()
 {
-       int stat;        
+       int stat, serrno = errno;
        char buf[BUFSIZ];
-       extern int errno;
-       int serrno = errno;
 
        buf[0]='\0';
        
@@ -127,13 +127,12 @@ main(argc, argv)
        
        do {
                char *time_s;
-               extern char *ctime();
                long foo;
                
                done = 0;
                errno = 0;
                if (fgets(buf, BUFSIZ, prog) == NULL) {
-                       if (errno) {
+                       if (errno && errno!=EINTR) {
                                strcpy(buf, "Unable to read from program: ");
                                strcat(buf, sys_errlist[errno]);
                                strcat(buf, "\n");
@@ -147,7 +146,3 @@ main(argc, argv)
        } while (!done);
        exit(0);
 }
-
-
-
-         
This page took 0.033397 seconds and 4 git commands to generate.