Skip to content

Commit

Permalink
btest-setsid: Fail on setsid() error
Browse files Browse the repository at this point in the history
  • Loading branch information
awelzel committed Dec 4, 2024
1 parent 0fdcfc7 commit d3a3b05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions btest-setsid
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit d3a3b05

Please sign in to comment.