Add ctdb_fork(0 which will fork a child process and drop the real-time
[sahlberg/ctdb.git] / server / ctdb_recoverd.c
index 9caa5024dd653e89bbabd97fc651e066a4f6ecfc..b2c08ced0c5bc3b5a2cf520f79e47d9d7e524a79 100644 (file)
@@ -2768,7 +2768,7 @@ static int check_recovery_lock(struct ctdb_context *ctdb)
                return -1;
        }
 
-       state->child = fork();
+       state->child = ctdb_fork(ctdb);
        if (state->child == (pid_t)-1) {
                DEBUG(DEBUG_CRIT,(__location__ " fork() failed in check_reclock child\n"));
                close(state->fd[0]);