Browse Source

Remove the old pid file per process when preparing the new child processes

master
Con Kolivas 10 years ago
parent
commit
d15ccdf54d
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -1260,6 +1260,8 @@ static proc_instance_t *prepare_child(ckpool_t *ckp, int (*process)(), char *nam
pi->process = process; pi->process = process;
create_process_unixsock(pi); create_process_unixsock(pi);
manage_old_child(ckp, pi); manage_old_child(ckp, pi);
/* Remove the old pid file if we've succeeded in coming this far */
rm_namepid(pi);
return pi; return pi;
} }

Loading…
Cancel
Save