Before f1efcfb4948542237f6e2ceb5389de9e23f9baea Real PTY and server. One output subscriber delayed via Node inspector; queue inspected read-only. {"stage": "first subscriber blocked", "status": "running", "drainRunning": true, "queue": [], "held": 1} {"stage": "first clear", "status": "running", "drainRunning": false, "queue": [], "held": 1} {"stage": "second output during first drain", "status": "running", "drainRunning": true, "queue": [], "held": 2} {"stage": "real exit queued", "status": "running", "drainRunning": true, "queue": [{"type": "output", "data": "exit\r\n"}, {"type": "exit", "event": {"exitCode": 42, "signal": 0}}], "held": 2} {"stage": "second clear", "status": "running", "drainRunning": false, "queue": [], "held": 2} {"stage": "after release", "status": "running", "drainRunning": false, "queue": [], "held": 0} After 519273270179633afba4c0e261540ce86d2c735d Real PTY and server. One output subscriber delayed via Node inspector; queue inspected read-only. {"stage": "first subscriber blocked", "status": "running", "drainRunning": true, "queue": [], "held": 1} {"stage": "first clear", "status": "running", "drainRunning": true, "queue": [], "held": 1} {"stage": "second output during first drain", "status": "running", "drainRunning": true, "queue": [{"type": "output", "data": "HOLD-two\r\n"}], "held": 1} {"stage": "real exit queued", "status": "running", "drainRunning": true, "queue": [{"type": "output", "data": "HOLD-two\r\n"}, {"type": "output", "data": "exit\r\n"}, {"type": "exit", "event": {"exitCode": 42, "signal": 0}}], "held": 1} {"stage": "second clear", "status": "running", "drainRunning": true, "queue": [{"type": "exit", "event": {"exitCode": 42, "signal": 0}}], "held": 1} {"stage": "after release", "status": "exited", "drainRunning": false, "queue": [], "held": 0}