From 89cd43338a2a9bb768d715f1bb53987801be7c79 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 5 Dec 2014 16:21:01 +0000 Subject: Bugfix: skaclient_start and skaclient_startf need a flush before a receive! --- src/libunixonacid/skaclient_start.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libunixonacid/skaclient_start.c') diff --git a/src/libunixonacid/skaclient_start.c b/src/libunixonacid/skaclient_start.c index b17750b..a7e3e67 100644 --- a/src/libunixonacid/skaclient_start.c +++ b/src/libunixonacid/skaclient_start.c @@ -30,6 +30,13 @@ int skaclient_start ( unixmessage_t m ; register int r ; if (!skaclient_start_async(a, bufss, bufsn, auxbufss, auxbufsn, bufas, bufan, auxbufas, auxbufan, q, qlen, path, before, beforelen, after, afterlen, &blah)) return 0 ; + if (!skaclient_timed_flush(a, deadline, stamp)) + { + register int e = errno ; + skaclient_end(a) ; + errno = e ; + return 0 ; + } r = unixmessage_timed_receive(&a->syncin, &m, deadline, stamp) ; if (r < 1) { -- cgit v1.2.3