From d3a3b05c99c870480bd6704af70f4b35bdb41d6d Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Wed, 4 Dec 2024 14:59:49 +0100 Subject: [PATCH] btest-setsid: Fail on setsid() error --- btest-setsid | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/btest-setsid b/btest-setsid index 8cd1bdb..5c6a861 100755 --- a/btest-setsid +++ b/btest-setsid @@ -5,8 +5,9 @@ import sys try: os.setsid() -except Exception: - pass +except Exception as e: + print(f"btest-setsid failed: {e!r}", file=sys.stderr) + exit(1) prog = sys.argv[1] args = sys.argv[1:]