Add proper RLock synchronization to prevent race conditions when multiple threads access interrupt state simultaneously. Changes: - tools/interrupt.py: Add RLock, nesting count tracking, new APIs - tools/terminal_tool.py: Remove direct _interrupt_event exposure - tests/tools/test_interrupt.py: Comprehensive race condition tests CVSS: 8.5 (High) Refs: V-007, Issue #48 Fixes: CWE-362: Concurrent Execution using Shared Resource
2.7 KiB
2.7 KiB