projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SEGV for s=sl for 3 terms and syntax error YAZ-857
[yaz-moved-to-github.git]
/
src
/
eventl.c
diff --git
a/src/eventl.c
b/src/eventl.c
index
75d738c
..
be79cf3
100644
(file)
--- a/
src/eventl.c
+++ b/
src/eventl.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-78,7
+78,7
@@
int iochan_is_alive(IOCHAN chan)
return 1;
}
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 */
{
{
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 (yaz_errno() == EINTR)
{
xfree(fds);
+ if (watch_sig && *watch_sig)
+ break;
continue;
}
else
continue;
}
else