unsloth/cli
Roland Tannous 08b5879101
fix: Ctrl+C not terminating backend on Linux (#4316)
* fix: Ctrl+C not breaking out of backend on Linux

threading.Event.wait() without a timeout blocks at the C level on
Linux, preventing Python from delivering SIGINT.  Use a 1-second
timeout loop so the interpreter can process pending signals.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-03-16 11:58:09 +04:00
..
commands fix: Ctrl+C not terminating backend on Linux (#4316) 2026-03-16 11:58:09 +04:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
config.py Final cleanup 2026-03-12 18:28:04 +00:00
options.py Final cleanup 2026-03-12 18:28:04 +00:00