diff --git a/src/ckpool.c b/src/ckpool.c index 69afbf80..484eda48 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -1286,6 +1286,8 @@ static proc_instance_t *prepare_child(ckpool_t *ckp, int (*process)(), char *nam pi->process = process; create_process_unixsock(pi); manage_old_child(ckp, pi); + /* Remove the old pid file if we've succeeded in coming this far */ + rm_namepid(pi); return pi; }