X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Funix.c;h=60cbedc3e7dadb758c0bf9623fa1187e058bc46b;hb=00537b483d646bd04a204708ecbde708861f044e;hp=08320f97b014cefecdfaa91815fc6e85850b71f0;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;p=yaz-moved-to-github.git diff --git a/src/unix.c b/src/unix.c index 08320f9..60cbedc 100644 --- a/src/unix.c +++ b/src/unix.c @@ -247,7 +247,7 @@ static void *unix_straddr1(COMSTACK h, const char *str, char *f) { char * end; char * arg = s + 6; - + sp->umask = strtol(arg, &end, 8); if (errno == EINVAL || *end) @@ -513,7 +513,7 @@ static COMSTACK unix_accept(COMSTACK h) } return 0; } - if (!(cnew->flags&CS_FLAGS_BLOCKING) && + if (!(cnew->flags&CS_FLAGS_BLOCKING) && (fcntl(cnew->iofile, F_SETFL, O_NONBLOCK) < 0) ) {