From 2e7eb0298199b542a1288272013ff259b77450a5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 16 Aug 2017 23:17:45 +0000 Subject: Make skaclient's fd coe --- src/libunixonacid/skaclient_startf_async.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libunixonacid/skaclient_startf_async.c') diff --git a/src/libunixonacid/skaclient_startf_async.c b/src/libunixonacid/skaclient_startf_async.c index 305b2b6..9427ce3 100644 --- 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) -- cgit v1.2.3