summaryrefslogtreecommitdiff
path: root/src/libs6
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-20 22:35:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-20 22:35:45 +0000
commit5af73b17714076498a98b6a5679a4700399eaaa0 (patch)
treed81912cf894edfb056e4a59caf7530c2b754181f /src/libs6
parent2844097114fe7b36e03ff863ce8daaaf9d6583c7 (diff)
downloads6-5af73b17714076498a98b6a5679a4700399eaaa0.tar.xz
Add readiness support to s6-svstat
Diffstat (limited to 'src/libs6')
-rw-r--r--src/libs6/s6_fdholder_store_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs6/s6_fdholder_store_async.c b/src/libs6/s6_fdholder_store_async.c
index dfaab05..2f783b1 100644
--- a/src/libs6/s6_fdholder_store_async.c
+++ b/src/libs6/s6_fdholder_store_async.c
@@ -14,7 +14,7 @@ int s6_fdholder_store_async (s6_fdholder_t *a, int fd, char const *id, tain_t co
siovec_t v[2] = { { .s = pack, .len = 2 + TAIN_PACK }, { .s = id, .len = idlen + 1 } } ;
unixmessage_v_t m = { .v = v, .vlen = 2, .fds = &fd, .nfds = 1 } ;
if (idlen > S6_FDHOLDER_ID_SIZE) return (errno = ENAMETOOLONG, 0) ;
- pack[1] = (unsigned char)idlen ;
- tain_pack(pack + 2, limit) ;
+ tain_pack(pack + 1, limit) ;
+ pack[1+TAIN_PACK] = (unsigned char)idlen ;
return unixmessage_putv(&a->connection.out, &m) ;
}