Commit 4d546f8
committed
fix: graceful SIGTERM shutdown — exit(0) instead of flag
The stdin read loop blocks on sys.stdin, so the old running=False
flag approach never took effect. The process would hang until
forcibly killed (exit code null), triggering Aegis auto-diagnostics
unnecessarily. Now the signal handler emits final perf stats and
calls sys.exit(0) directly for a clean shutdown.1 parent 27895cc commit 4d546f8
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
273 | 274 | | |
274 | | - | |
275 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
281 | | - | |
282 | | - | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
0 commit comments