Skip to content
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

Python: abort() on ctrl+c when .get() pending #323

Open
awelzel opened this issue Mar 27, 2023 · 0 comments
Open

Python: abort() on ctrl+c when .get() pending #323

awelzel opened this issue Mar 27, 2023 · 0 comments

Comments

@awelzel
Copy link
Contributor

awelzel commented Mar 27, 2023

Calling .get() on a Subscriber and interrupting it with Ctrl+C causes an abort. This should likely raise KeybordInterrupt or so, but not end up in abort() and take down everything.

$ PYTHONPATH=.:/opt/zeek-dev-prod/lib/zeek/python  ipython3

In [1]: import broker
In [2]: ep = broker.Endpoint()
In [3]: ss = ep.make_subscriber("/topic/test")
In [4]: ss.get()
^Cterminate called without an active exception
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants