From 8f84a6238a7eaa1f411f4d958a93e0f00464892d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 8 May 2020 15:12:03 +0200 Subject: Signal the entire process group to end indexamajig Otherwise, subprocesses carry on regardless and become zombies. --- src/gui_backend_local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 0c459d28..2eb5d2b8 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -238,8 +238,8 @@ static void cancel(struct crystfelproject *proj) if ( !priv->indexamajig_running ) return; - ERROR("Stopping indexamajig.\n"); - kill(priv->indexamajig_pid, SIGQUIT); + ERROR("Stopping indexamajig (pid %i).\n", priv->indexamajig_pid); + kill(-priv->indexamajig_pid, SIGINT); } -- cgit v1.2.3