Skip to content

Commit e45449e

Browse files
authored
Update headless.py
1 parent 26861fb commit e45449e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎python_agent_harness/entry/headless.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ class signal_canceller:
6767
process dying mid-run the session's cancel machinery runs — the
6868
agent loop unwinds through its normal cancel path and the runner
6969
still emits its final ``result`` line (with ``cancelled: true``).
70-
Windows delivers only SIGINT (CTRL_C_EVENT / CTRL_BREAK): SIGTERM
71-
registration is attempted but a failure (ValueError on some
72-
platforms/signals) is tolerated — on Windows a hard kill leaves
73-
no final line, which the driver already handles as "process died".
70+
SIGTERM registration is attempted but a failure (ValueError on
71+
some platforms/signals) is tolerated — a hard kill leaves no final
72+
line, which the driver already handles as "process died".
7473
7574
The previous handlers are restored on exit (including when the
7675
body raises). Only the main thread may install handlers; from

0 commit comments

Comments
 (0)