The "KeyboardInterrupt" gets logged but the process doesn't terminate until the next file system event happens and RustNotify.watch() returns.
This is because windows doesn't have signals, so open_signal_receiver
|
with anyio.open_signal_receiver(signal.SIGINT) as signals: |
Doesn't work and there's no way to tell the rust code to terminate.
Potential solution is to return from RustNotify.watch() regularly, and thereby check if an error has been raised. Seems a bit ugly but I can't think of a better solution.
Let's see if people actually suffer from this?
The "KeyboardInterrupt" gets logged but the process doesn't terminate until the next file system event happens and
RustNotify.watch()returns.This is because windows doesn't have signals, so
open_signal_receiverwatchfiles/watchfiles/main.py
Line 181 in 7a74df9
Doesn't work and there's no way to tell the rust code to terminate.
Potential solution is to return from
RustNotify.watch()regularly, and thereby check if an error has been raised. Seems a bit ugly but I can't think of a better solution.Let's see if people actually suffer from this?