s6

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

commit 8a311cc5a9c7a151e9fc634ade08ce677b8bcc67
parent ea826e47880c2917ee79f9c511244842ba65e15a
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue,  9 Dec 2014 14:34:09 +0000

errno fix in ftrigr_subscribe

Diffstat:
Msrc/libs6/ftrigr_subscribe.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/libs6/ftrigr_subscribe.c b/src/libs6/ftrigr_subscribe.c @@ -24,7 +24,9 @@ uint16 ftrigr_subscribe (ftrigr_t *a, char const *path, char const *re, uint32 o uint32_pack_big(tmp+11, (uint32)relen) ; if (!skaclient_sendv(&a->connection, v, 3, &skaclient_default_cb, &err, deadline, stamp)) { + register int e = errno ; gensetdyn_delete(&a->data, i) ; + errno = e ; return 0 ; } if (err)