Hi, In the zmq guide here: http://zguide.zeromq.org/page:all#The-CZMQ-High-Level-API it states that zmq_poll should return with -1 if an interrupt is received, but for some reason this isn't happening. It does return on interrupt immediately, but with 0 as the return value.
The socket being polled was created with a call to zsocket_new(), and the zmq context was created with a call to zctx_new(). I know that czmq registers a function to handle interrupts, and I can verify that this is being called on interrtupt because the global variable zctx_interrupted is set to true, so I can use this. I just wanted to clarify whether there this is a typo in the documentation or perhaps an indication that I've not setup everything correctly. The application in question is just a small command-line program running on linux with the interrupt generated with a Ctrl-C to the shell. Andy -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor, The Communications Building, 48, Leicester Square, London, WC2H 7LT, UK Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: http://www.thefoundry.co.uk/ The Foundry Visionmongers Ltd. Registered in England and Wales No: 4642027
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
