summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
Diffstat (limited to 'linuxnamespaces')
-rw-r--r--linuxnamespaces/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py
index f44220a..c060e01 100644
--- a/linuxnamespaces/__init__.py
+++ b/linuxnamespaces/__init__.py
@@ -210,7 +210,7 @@ class run_in_fork:
self.efd.read()
self.efd.close()
function()
- sys.exit(0)
+ os._exit(0)
def start(self) -> None:
"""Start the decorated function. It can only be started once."""