summaryrefslogtreecommitdiff
path: root/src/libs6/ftrigr_wait_and.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:57:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 15:57:07 +0000
commitc84b8ade3f2d1349a6e4b68b1bd497b0909cfcda (patch)
treef6a3a51e47e613a0271e0296b0a80fb04816d818 /src/libs6/ftrigr_wait_and.c
parentd945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (diff)
downloads6-c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda.tar.xz
Propagate fd_close() changes, fix deps for ftrigr_updateb()
Diffstat (limited to 'src/libs6/ftrigr_wait_and.c')
-rw-r--r--src/libs6/ftrigr_wait_and.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs6/ftrigr_wait_and.c b/src/libs6/ftrigr_wait_and.c
index 92080e7..dee03fd 100644
--- a/src/libs6/ftrigr_wait_and.c
+++ b/src/libs6/ftrigr_wait_and.c
@@ -19,8 +19,9 @@ int ftrigr_wait_and (ftrigr_t *a, uint16_t const *idlist, unsigned int n, tain_t
r = iopause_stamp(&x, 1, deadline, stamp) ;
if (r < 0) return r ;
else if (!r) return (errno = ETIMEDOUT, -1) ;
- else if (ftrigr_update(a) < 0) return -1 ;
+ else if (ftrigr_updateb(a) < 0) return -1 ;
}
}
+
return 1 ;
}