[zeromq-dev] CTRL+C
Pieter Hintjens
ph at imatix.com
Tue Oct 30 06:08:25 CET 2012
On Mon, Oct 29, 2012 at 9:06 PM, Balázs Varga <bb.varga at gmail.com> wrote:
> How is it solved in other bindings? I think it can be a windows issue, but
> not sure, haven't tried it on other OS yet.
Libzmq doesn't install any handler, indeed. So a signal may interrupt
the blocking call, or may kill the process. The text in the Guide
you're quoting quite clearly says you have to install your own signal
handler to catch SIGINT.
The second issue, which you're presumably hitting, is that some
language runtimes may do their own signal handling so that libzmq
simply never gets the signal, and blocking calls never exit.
Perhaps this may help:
http://stackoverflow.com/questions/1000223/how-do-i-handle-ctrlc-in-a-delphi-console-application
-Pieter
More information about the zeromq-dev
mailing list