return 1;
}
-int iochan_event_loop(IOCHAN *iochans)
+int iochan_event_loop(IOCHAN *iochans, int *watch_sig)
{
do /* loop as long as there are active associations to process */
{
if (yaz_errno() == EINTR)
{
xfree(fds);
+ if (watch_sig && *watch_sig)
+ break;
continue;
}
else