diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:57:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-16 15:57:07 +0000 |
commit | c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda (patch) | |
tree | f6a3a51e47e613a0271e0296b0a80fb04816d818 /src/libs6/ftrigr_wait_and.c | |
parent | d945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (diff) | |
download | s6-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.c | 3 |
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 ; } |