X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.c;h=be79cf3e006e68cb248c7db7d05f8a253c4f30d2;hb=9fc22b417210e4c3fa2c8bf3b005cbf74f3c4c03;hp=75d738c962041bf0e56092e0922144bb473bacec;hpb=d0e351c12fff564d876958e860338d43716dc269;p=yaz-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index 75d738c..be79cf3 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -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