docs(whatsapp): the bridge runs in its own session, not the gateway's process group
The #127047 comment said a supervisor's stop signal reaches the bridge through the shared process group. The bridge is spawned with start_new_session=True; what reaches it is a container-wide broadcast such as s6-overlay's stage-3 SIGTERM.
This commit is contained in:
committed by
Mark S.
parent
99b24916ce
commit
31c5d57ec6
@@ -565,7 +565,7 @@ class WhatsAppAdapter(WhatsAppBehaviorMixin, BasePlatformAdapter):
|
||||
if returncode is None:
|
||||
return None
|
||||
# getattr-with-default: tests build the adapter via ``__new__`` without __init__.
|
||||
# A supervisor's stop signal reaches the bridge child (same process group) before the
|
||||
# A container stop (e.g. s6-overlay's stage-3 broadcast) reaches the bridge child (its own session) before the
|
||||
# gateway's stop flow reaches this adapter's disconnect(), so ``_shutting_down`` alone
|
||||
# misses that window and a normal -15/-2 exit reads as a fatal crash (#127047). The
|
||||
# runner flips ``_stop_requested_by_signal`` in its signal handler — the first thing
|
||||
|
||||
Reference in New Issue
Block a user