summaryrefslogtreecommitdiff
path: root/src/libunixonacid
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-16 23:17:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-16 23:17:45 +0000
commit2e7eb0298199b542a1288272013ff259b77450a5 (patch)
treeee808f9ff374e813a9c18d62a63ed868e7a47db2 /src/libunixonacid
parent0b62835eeb951fd2bf967e7fdb4194649bdddd06 (diff)
downloadskalibs-2e7eb0298199b542a1288272013ff259b77450a5.tar.xz
Make skaclient's fd coe
Diffstat (limited to 'src/libunixonacid')
-rw-r--r--src/libunixonacid/skaclient_startf_async.c4
1 files changed, 3 insertions, 1 deletions
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)