Add signum to signal debug print

This commit is contained in:
Benedikt Ziemons 2020-11-14 23:29:08 +01:00
parent 7501215211
commit a9b55774ae
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -37,17 +37,17 @@ class PodKeeper:
self.waiter = threading.Event() self.waiter = threading.Event()
def destroy(self, signum, stackframe): def destroy(self, signum, stackframe):
print("Destroy signal", file=sys.stderr, flush=True) print("Destroy signal", signum, file=sys.stderr, flush=True)
self.stopping.set() self.stopping.set()
self.waiter.set() self.waiter.set()
def reload(self, signum, stackframe): def reload(self, signum, stackframe):
print("Reload signal", file=sys.stderr, flush=True) print("Reload signal", signum, file=sys.stderr, flush=True)
self.reloading.set() self.reloading.set()
self.waiter.set() self.waiter.set()
def check(self, signum, stackframe): def check(self, signum, stackframe):
print("Check signal", file=sys.stderr, flush=True) print("Check signal", signum, file=sys.stderr, flush=True)
self.checking.set() self.checking.set()
self.waiter.set() self.waiter.set()