s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 9e993c95b20db3cb6709d07b37de7cb7a5b4b70a
parent a6af536be0d264d9e7d0e26fd07cd822d1c0331a
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue, 31 Jan 2017 11:22:27 +0000

 Actually fix the return value of ftrigr_update() (thanks jjk)

Diffstat:
Msrc/libs6/ftrigr_update.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libs6/ftrigr_update.c b/src/libs6/ftrigr_update.c @@ -58,6 +58,8 @@ static int msghandler (unixmessage_t const *m, void *context) int ftrigr_update (ftrigr_t *a) { + int r ; genalloc_setlen(uint16_t, &a->list, 0) ; - return skaclient_update(&a->connection, &msghandler, a) ; + r = skaclient_update(&a->connection, &msghandler, a) ; + return r < 0 ? r : (int)genalloc_len(uint16_t, &a->list) ; }