aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-08 15:12:03 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit8f84a6238a7eaa1f411f4d958a93e0f00464892d (patch)
tree0d78850de94818cc561d84e24ad0636d06b8ef15
parentc03df15d71cf443f44a438f6d9dd99ab8259bcd5 (diff)
Signal the entire process group to end indexamajig
Otherwise, subprocesses carry on regardless and become zombies.
-rw-r--r--src/gui_backend_local.c4
1 files 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);
}