summaryrefslogtreecommitdiff
path: root/src/libs6/s6_fdholder_getdump.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/s6_fdholder_getdump.c
parentd945bca329f7a13741e1d3afcf9f0f73f6c70ce9 (diff)
downloads6-c84b8ade3f2d1349a6e4b68b1bd497b0909cfcda.tar.xz
Propagate fd_close() changes, fix deps for ftrigr_updateb()
Diffstat (limited to 'src/libs6/s6_fdholder_getdump.c')
-rw-r--r--src/libs6/s6_fdholder_getdump.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c
index fb751fa..bb7fb3f 100644
--- a/src/libs6/s6_fdholder_getdump.c
+++ b/src/libs6/s6_fdholder_getdump.c
@@ -65,11 +65,9 @@ int s6_fdholder_getdump (s6_fdholder_t *a, genalloc *g, tain_t const *deadline,
errno = EPROTO ;
err:
{
- int e = errno ;
size_t j = genalloc_len(s6_fdholder_fd_t, g) ;
while (j-- > oldlen) fd_close(genalloc_s(s6_fdholder_fd_t, g)[j].fd) ;
genalloc_setlen(s6_fdholder_fd_t, g, oldlen) ;
- errno = e ;
}
return 0 ;
}