zeek / broker

Zeek's Messaging Library

Home Page:https://docs.zeek.org/projects/broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

awelzel opened this issue · comments

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)