commit 6b409f7c1f5b640108b5e4da56d819c43aee3ccd
parent ab66026ca00c3bf64cc2e71030359438c9af4348
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 11 Oct 2026 14:03:26 +0200
reap typst zombies
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/mhd/mhd_typst.c b/src/mhd/mhd_typst.c
@@ -153,6 +153,12 @@ TALER_MHD_typst_cancel (struct TALER_MHD_TypstContext *tc)
GNUNET_break (GNUNET_OK ==
GNUNET_process_kill (stage->proc,
SIGKILL));
+ /* reap the child, nobody else will (we cancelled the cwh) */
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_wait (stage->proc,
+ true,
+ NULL,
+ NULL));
GNUNET_process_destroy (stage->proc);
stage->proc = NULL;
}
@@ -169,6 +175,11 @@ TALER_MHD_typst_cancel (struct TALER_MHD_TypstContext *tc)
GNUNET_break (GNUNET_OK ==
GNUNET_process_kill (tc->proc,
SIGKILL));
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_wait (tc->proc,
+ true,
+ NULL,
+ NULL));
GNUNET_process_destroy (tc->proc);
}
GNUNET_free (tc->output_file);