summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-11-29 10:31:46 +0100
committerGitHub <noreply@github.com>2022-11-29 10:31:46 +0100
commit1917de088a35f7884f30e88dcf85879c10fc8565 (patch)
tree8352b604287fcab4b0637c6d2d40bd55859beeee
parentfd237733acb7520332dfe9b36795d0414057a07e (diff)
parent1867c8b7ae47c8342c264aac752340e09a3593e4 (diff)
Merge pull request #127 from jow-/uloop-done-in-tasks
uloop: terminate parent uloop in task child processes
-rw-r--r--lib/uloop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uloop.c b/lib/uloop.c
index 48ff698..f45f8c3 100644
--- a/lib/uloop.c
+++ b/lib/uloop.c
@@ -976,6 +976,8 @@ uc_uloop_task(uc_vm_t *vm, size_t nargs)
err_return(errno);
if (pid == 0) {
+ uloop_done();
+
patch_devnull(0, false);
patch_devnull(1, true);
patch_devnull(2, true);