You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signal handler for SIGINT/SIGTERM was calling fprintf(), which
is not async-signal-safe and can lead to deadlocks or data corruption.
- Use volatile sig_atomic_t flag instead of calling fprintf directly
- Signal handler now only sets the flag (async-signal-safe)
- Main loops check the flag and print statistics when safe
- Applies to both SMP (coroutine) and single-hart execution paths
0 commit comments