mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
fix(code-runtime-python): reset the inherited SIGXCPU disposition and mask at startup
The reviewer's standing issue: the child inherits the host's SIGXCPU disposition and signal mask — if the host ignores or blocks SIGXCPU, the soft RLIMIT_CPU fires but cannot stop the child, and the hard limit's SIGKILL then classifies a definite CPU overrun as worker-exit instead of a timeout. The bootstrap now resets SIGXCPU to SIG_DFL and unblocks it before any model code runs (the settle-time enforcer already restores SIG_DFL for a program that traps or masks the signal mid-run; this closes the inherited-state gap). The zh README's outer wire section also gains the truncation-exception sentence to match the en side.
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/code-runtime/code-runtime-python/README.md
|
||||
README.md: 2e22a5122f891b8317e13ee395ce222805b01b29
|
||||
README.zh.md: 0f8773bc8e8292cfc3f0b09395d46ff75b17392c
|
||||
README.zh.md: 028d2f5f7b57f1ca4da46557ba66511992227379
|
||||
|
||||
Reference in New Issue
Block a user