Skip to content

Commit 909a01f

Browse files
authored
events: avoid zombie processes after reloading (#4436)
To prevent zombie processes after reloading by using join. Signed-off-by: zhangxyue <[email protected]>
1 parent 3dc3149 commit 909a01f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

events/src/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ def restart(self):
467467
# In transit messages are skipped, since webhooks monitor process
468468
# is terminated.
469469
self.proc.terminate()
470+
self.proc.join()
470471
self.start()
471472

472473
def send(self, event_type, event_ts, message):

0 commit comments

Comments
 (0)