From 879294fe1a0c9e28eb9e01dfc02924fc86c2d94e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 27 Jan 2016 21:47:44 +1100 Subject: [PATCH] Correctly handle existing instance running --- src/ckpool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ckpool.c b/src/ckpool.c index 0102755b..1d12b271 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -2126,6 +2126,8 @@ int main(int argc, char **argv) } } + if (!ckp.handover) + manage_old_child(&ckp, &ckp.main); write_namepid(&ckp.main); open_process_sock(&ckp, &ckp.main, &ckp.main.us); launch_logger(&ckp.main);