X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Feventl.c;h=be79cf3e006e68cb248c7db7d05f8a253c4f30d2;hp=3516f79e0d1cbb82bc841dc53947d3bf241df8cf;hb=6260987fdcc904b2110b88f882e66fa47e0b35dc;hpb=473824797f568578dc17d7242551cb2f7ccef46c diff --git a/src/eventl.c b/src/eventl.c index 3516f79..be79cf3 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -78,7 +78,7 @@ int iochan_is_alive(IOCHAN chan) 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 */ { @@ -127,6 +127,8 @@ int iochan_event_loop(IOCHAN *iochans) if (yaz_errno() == EINTR) { xfree(fds); + if (watch_sig && *watch_sig) + break; continue; } else