-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl-C not working #4
Comments
I can confirm this pretty annoying issue. |
The way I've found around this issue right now is I'm trying to figure out a way to wrap it so I can control it the way I want to. |
To solve this problem in your app, catch
|
Any new about that issue? I got something like: if __name__ == "__main__":
try:
obs = Observer()
obs.start()
str = Stream(callback, live, file_events=True)
obs.schedule(str)
except KeyboardInterrupt:
print "Going to quit"
obs.unschedule(str)
obs.stop()
obs.join()
sys.exit(0) And I still cannot terminate the program but but hitting |
when running an Observer either with run() or start(), the program can't be stopped e.g. by pressing Ctrl-C and Signal-handlers installed (for e.g. SIGINT or SIGTERM) are ignored.
The text was updated successfully, but these errors were encountered: