commit 2e7eb0298199b542a1288272013ff259b77450a5
parent 0b62835eeb951fd2bf967e7fdb4194649bdddd06
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Wed, 16 Aug 2017 23:17:45 +0000
Make skaclient's fd coe
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libunixonacid/skaclient_startf_async.c b/src/libunixonacid/skaclient_startf_async.c
@@ -32,7 +32,9 @@ int skaclient_startf_async (
int fd ;
pid_t pid = child_spawn1_socket(prog, argv, envp, &fd) ;
if (!pid) return 0 ;
- if (ndelay_on(fd) < 0 || !skaclient_init(a, fd, bufss, bufsn, auxbufss, auxbufsn, bufas, bufan, auxbufas, auxbufan, q, qlen, before, beforelen))
+ if (ndelay_on(fd) < 0
+ || coe(fd) < 0
+ || !skaclient_init(a, fd, bufss, bufsn, auxbufss, auxbufsn, bufas, bufan, auxbufas, auxbufan, q, qlen, before, beforelen))
{
fd_close(fd) ;
if (options & SKACLIENT_OPTION_WAITPID)