title: ZeroMQ-terminate called after throwing an instance of 'zmq::error_t' socket operation on non socket when using poll() function on c++
body: <p>Hi I'm trying to use a <strong><code>poll()</code></strong> function from the <strong><code>ZeroMQ</code></strong> library on the server side.</p>
  
  <p>In fact I want to receive notifications from my clients in order to execute a script in my code.</p>
  
  <p>I found that link<br>
  <a href="https://stackoverflow.com/questions/14935202/using-zmqpoll-in-multithreaded-c0x11-program-in-combination-with-cntr-x-or">using zmq::poll in multithreaded c++0x11 program in combination with cntr +x or kill signal</a> </p>
  
  <p>It throws an instance of <strong><code>zmq::error_t</code> socket operation on non socket</strong> </p>
  
  <p>It seems not to be working for me!</p>