X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Funix.c;h=60cbedc3e7dadb758c0bf9623fa1187e058bc46b;hb=00537b483d646bd04a204708ecbde708861f044e;hp=56dacc49e68d8c26d9a6cd95d5f55c3a90947634;hpb=d0e351c12fff564d876958e860338d43716dc269;p=yaz-moved-to-github.git diff --git a/src/unix.c b/src/unix.c index 56dacc4..60cbedc 100644 --- a/src/unix.c +++ b/src/unix.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -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) ) {