Re: [zeromq-dev] CTRL+C

2012-10-30 Thread Pieter Hintjens
On Tue, Oct 30, 2012 at 6:50 AM, Daisuke Maki lestr...@gmail.com wrote: I thought windows doesn't handle SIGINT the way us in unix land expect? http://msdn.microsoft.com/en-us/library/xdkz3x12(v=vs.110).aspx In plain C, it works pretty much like POSIX when it comes to interrupting blocking

[zeromq-dev] CTRL+C

2012-10-29 Thread Balázs Varga
Hi, I have difficulties implementing a proper CTRL+C handling in my delphi binding. In the guide I read that : 'If your code is blocking in zmq_msg_recv(3)http://api.zeromq.org/3-2:zmq_msg_recv , zmq_poll(3) http://api.zeromq.org/3-2:zmq_poll, or

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Pieter Hintjens
On Mon, Oct 29, 2012 at 9:06 PM, Balázs Varga bb.va...@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

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Balázs Varga
On Oct 30, 2012 6:09 AM, Pieter Hintjens p...@imatix.com wrote: On Mon, Oct 29, 2012 at 9:06 PM, Balázs Varga bb.va...@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. I just tried pyzmq's interupt

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Pieter Hintjens
On Tue, Oct 30, 2012 at 6:31 AM, Balázs Varga bb.va...@gmail.com wrote: I know this link,installing a handler is not a problem,make the blocing calls exit is the problem. Right. The problem for libzmq afair is twofold: one, the OS has to interrupt the blocking call cleanly, which e.g. means in

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Daisuke Maki
I thought windows doesn't handle SIGINT the way us in unix land expect? http://msdn.microsoft.com/en-us/library/xdkz3x12(v=vs.110).aspx --d 2012/10/30 Pieter Hintjens p...@imatix.com: On Tue, Oct 30, 2012 at 6:31 AM, Balázs Varga bb.va...@gmail.com wrote: I know this link,installing a

Re: [zeromq-dev] Ctrl+C problem fixed in master

2010-09-13 Thread Brian Granger
Thanks for fixing this Martin!!! Cheers, Brian On Wed, Sep 8, 2010 at 1:19 AM, Martin Sustrik sust...@250bpm.com wrote: Hi all, The problem with interpreted languages bindings being unresponsive to Ctrl+C was fixed in the master branch (0MQ/2.1 to be). Thanks to Brian Granger, Daisuke