summaryrefslogtreecommitdiff
path: root/src/libs6/s6_fdholder_list.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-23 16:07:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-23 16:07:31 +0000
commite62d3ae45e9bf3b97551b8879bf6c441ff961ec1 (patch)
tree239987a77426dac08b2877b8e0afab5d4aae6eff /src/libs6/s6_fdholder_list.c
parent2c922d2f9870ef174894a6b91399d5cd59318352 (diff)
downloads6-e62d3ae45e9bf3b97551b8879bf6c441ff961ec1.tar.xz
- add s6_accessrules_params_free
- some libfdholder debug
Diffstat (limited to 'src/libs6/s6_fdholder_list.c')
-rw-r--r--src/libs6/s6_fdholder_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs6/s6_fdholder_list.c b/src/libs6/s6_fdholder_list.c
index 4f804aa..868a3e6 100644
--- a/src/libs6/s6_fdholder_list.c
+++ b/src/libs6/s6_fdholder_list.c
@@ -1,6 +1,7 @@
/* ISC license. */
#include <errno.h>
+#include <skalibs/allreadwrite.h>
#include <skalibs/error.h>
#include <skalibs/tai.h>
#include <skalibs/unixmessage.h>
@@ -12,7 +13,7 @@ int s6_fdholder_list (s6_fdholder_t *a, stralloc *sa, tain_t const *deadline, ta
unixmessage_t m ;
if (!s6_fdholder_list_async(a)) return -1 ;
if (!unixmessage_sender_timed_flush(&a->connection.out, deadline, stamp)) return -1 ;
- if (!unixmessage_timed_receive(&a->connection.in, &m, deadline, stamp)) return -1 ;
+ if (sanitize_read(unixmessage_timed_receive(&a->connection.in, &m, deadline, stamp)) < 0) return -1 ;
if (!s6_fdholder_list_cb(&m, &res)) return -1 ;
if (res.err) return (errno = res.err, -1) ;
return (int)res.n ;