From 287abe2cd3355742f2117aef1040acb1c346614c Mon Sep 17 00:00:00 2001 From: Jagan Prem Date: Wed, 15 Nov 2023 18:26:05 -0800 Subject: [PATCH] Accept zero return code --- vibrio/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vibrio/server.py b/vibrio/server.py index 1110ffe..37bdda8 100644 --- a/vibrio/server.py +++ b/vibrio/server.py @@ -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}" ) @@ -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}" )