From 862ec2116029b12d80cc9926d4631f7c2670042e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 26 Mar 2018 11:52:48 +0545 Subject: [PATCH] core: allow shutdown triggered by any parent, not just immediate parent --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 3a66ff30..35972559 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1372,7 +1372,7 @@ class ExternalContext(object): def _on_shutdown_msg(self, msg): _v and LOG.debug('_on_shutdown_msg(%r)', msg) - if msg != _DEAD and msg.src_id != mitogen.parent_id: + if msg != _DEAD and msg.auth_id not in mitogen.parent_ids: LOG.warning('Ignoring SHUTDOWN from non-parent: %r', msg) return self.broker.shutdown()