]> andersk Git - moira.git/commitdiff
if the server is SLEEPY (got a SIGUSR1), close the database the next
authordanw <danw>
Mon, 30 Mar 1998 16:19:17 +0000 (16:19 +0000)
committerdanw <danw>
Mon, 30 Mar 1998 16:19:17 +0000 (16:19 +0000)
time around the main loop. (This got left out in the mrgdb rewrite.)

server/mr_main.c

index 13c85701203b778d67a0e753ce245564b50986a6..5ce628c96fcc6ac0dc4d585536c4b423c6509535 100644 (file)
@@ -188,8 +188,9 @@ int main(int argc, char **argv)
       struct timeval timeout;
 
       /* If we're supposed to go down and we can, do it */
-      if ((dormant == AWAKE) && (nclients == 0) &&
-         (stat(MOIRA_MOTD_FILE, &stbuf) == 0))
+      if (((dormant == AWAKE) && (nclients == 0) &&
+          (stat(MOIRA_MOTD_FILE, &stbuf) == 0)) ||
+         (dormant == SLEEPY))
        {
          mr_close_database();
          com_err(whoami, 0, "database closed");
This page took 0.044384 seconds and 5 git commands to generate.