]> andersk Git - moira.git/commitdiff
Use `critical_alert', not `send_zgram' when the server dies
authordanw <danw>
Sat, 20 Dec 1997 20:56:32 +0000 (20:56 +0000)
committerdanw <danw>
Sat, 20 Dec 1997 20:56:32 +0000 (20:56 +0000)
unexpectedly, so that it appears in the critical.log

server/startmoira.c

index 74cd79ba50b34e6b4d6c368e1f5421065b1e9762..25946ad67ce126dcf70b27b096c669e03c3b7d9a 100644 (file)
@@ -50,14 +50,15 @@ void cleanup()
                                sprintf(buf,
                                        "exited with code %d\n",
                                        WEXITSTATUS(stat));
-                               send_zgram("startmoira", buf);
+                               critical_alert("startmoira", "%s", buf);
                        }
                }
                if (WIFSIGNALED(stat)) {
                        sprintf(buf, "exited on signal %d%s\n",
                                WTERMSIG(stat),
                                (WCOREDUMP(stat)?"; Core dumped":0));
-                       if(WCOREDUMP(stat)) send_zgram("startmoira", buf);
+                       if(WCOREDUMP(stat))
+                         critical_alert("startmoira", "%s", buf);
                }
                write(rdpipe[1], buf, strlen(buf));
                close(rdpipe[1]);
This page took 0.043259 seconds and 5 git commands to generate.