summaryrefslogtreecommitdiff
path: root/src/libunixonacid
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-18 21:08:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-18 21:08:14 +0000
commitc61359571fd3549ed69cd2e3b80e31bc9f9f0514 (patch)
tree1aa92331ed7dcf54f0c6a25fdff00d3c74664ee8 /src/libunixonacid
parenteabd95d0385c9600ed5b75d37398498c19f64d9d (diff)
downloadskalibs-c61359571fd3549ed69cd2e3b80e31bc9f9f0514.tar.xz
Fix fd management in new child_spawn1, make socket nb for skaclient
Diffstat (limited to 'src/libunixonacid')
-rw-r--r--src/libunixonacid/skaclient_startf_async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunixonacid/skaclient_startf_async.c b/src/libunixonacid/skaclient_startf_async.c
index 14fa29a..eaeba6c 100644
--- a/src/libunixonacid/skaclient_startf_async.c
+++ b/src/libunixonacid/skaclient_startf_async.c
@@ -34,7 +34,7 @@ int skaclient_startf_async (
int fd ;
pid_t pid = child_spawn1_socket(prog, argv, envp, &fd) ;
if (!pid) return 0 ;
- if (!skaclient_init(a, fd, bufss, bufsn, auxbufss, auxbufsn, bufas, bufan, auxbufas, auxbufan, q, qlen, before, beforelen))
+ if (ndelay_on(fd) < 0 || !skaclient_init(a, fd, bufss, bufsn, auxbufss, auxbufsn, bufas, bufan, auxbufas, auxbufan, q, qlen, before, beforelen))
{
register int e = errno ;
fd_close(fd) ;