use _exit() and not exit() when we terminate a failed eventscript child process
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 6 Apr 2009 03:16:36 +0000 (13:16 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 6 Apr 2009 03:16:36 +0000 (13:16 +1000)
server/eventscript.c

index 2d0ac40861246e51098841424e1cc480c9908387..246426a351881f250b6cda433555098a45befae8 100644 (file)
@@ -305,7 +305,7 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *options)
         */
        if (switch_from_server_to_client(ctdb) != 0) {
                DEBUG(DEBUG_CRIT, (__location__ "ERROR: failed to switch eventscript child into client mode. shutting down.\n"));
-               exit(1);
+               _exit(1);
        }
 
        if (!strcmp(options, "monitor")) {