title: catching signals while reading from pipe with select()
body: <p><a href="https://stackoverflow.com/questions/6950499/using-select-with-pipe">using select() with pipe</a> - this is what I am doing and now I need to catch <code>SIGTERM</code> on that. how can I do it? Do I have to do it when <code>select()</code> returns error ( &lt; 0 ) ? </p>