Skip to content

Commit

Permalink
code: bugfix with reaping for non-exec init invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Apr 22, 2023
1 parent 82fe873 commit 1277497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion munet/mutini.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,12 @@ def be_init(new_pg, exec_args):
# No exec so we are the "child".
new_process_group()

# Reap children as init process
vdebug("installing local handler for SIGCHLD")
signal.signal(signal.SIGCHLD, sig_sigchld)

while True:
logging.info("parent: waiting to reap zombies")
logging.info("init: waiting to reap zombies")
linux.pause()
# NOTREACHED

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "munet"
version = "0.12.14"
version = "0.12.15"
description = "A package to facilitate network simulations"
authors = ["Christian Hopps <[email protected]>"]
license = "GPL-2.0-or-later"
Expand Down

0 comments on commit 1277497

Please sign in to comment.