Skip to content

Commit

Permalink
mxqd: Unlock but do not delete lock file in reaper
Browse files Browse the repository at this point in the history
The reaper inherits the locked lock file and needs to unlock it. Use
mx_funlock_nodelete instead of mx_funlock so that the lock file is not
removed.
  • Loading branch information
donald committed Sep 17, 2021
1 parent 0be33f7 commit b8fd11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ unsigned long start_job(struct mxq_group_list *glist)
job->host_pid = getpid();

mx_log_debug("starting reaper process.");
mx_funlock(server->flock);
mx_funlock_nodelete(server->flock);
server->flock = NULL;
mx_mysql_finish(&server->mysql);

Expand Down

0 comments on commit b8fd11a

Please sign in to comment.