Skip to content

Commit

Permalink
Accept zero return code
Browse files Browse the repository at this point in the history
  • Loading branch information
notjagan committed Nov 16, 2023
1 parent 1431588 commit 287abe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vibrio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def stop(self) -> None:
self.log.close()
self.log = None

if status != signal.SIGTERM:
if status != 0 and status != signal.SIGTERM:
raise SystemError(
f"Could not cleanly shutdown server subprocess; received return code {status}"
)
Expand Down Expand Up @@ -193,7 +193,7 @@ async def stop(self) -> None:
self.log.close()
self.log = None

if status != signal.SIGTERM:
if status != 0 and status != signal.SIGTERM:
raise SystemError(
f"Could not cleanly shutdown server subprocess; received return code {status}"
)

0 comments on commit 287abe2

Please sign in to comment.