#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';
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");
} while (!done);
exit(0);
}
-
-
-
-