X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Funix.c;h=8f8abd2c34d0e828abe341d9f22c9414983c683a;hb=5c3d2d2ab097e4bb59ba5718a396b020a2d302c0;hp=bd6ce7c6a8aefdf84d647fffc8698217a35a9ca0;hpb=69758252fce6231073cb288a4f5bbf8f7febc249;p=yaz-moved-to-github.git diff --git a/src/unix.c b/src/unix.c index bd6ce7c..8f8abd2 100644 --- a/src/unix.c +++ b/src/unix.c @@ -2,9 +2,14 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: unix.c,v 1.4 2004-04-29 21:19:23 adam Exp $ + * $Id: unix.c,v 1.7 2004-11-18 15:18:14 heikki Exp $ * UNIX socket COMSTACK. By Morten Bøgeskov. */ +/** + * \file unix.c + * \brief Implements UNIX domain socket COMSTACK + */ + #ifndef WIN32 #include @@ -25,7 +30,6 @@ #include #include -#include #include #ifndef YAZ_SOCKLEN_T @@ -565,7 +569,7 @@ static int unix_get(COMSTACK h, char **buf, int *bufsize) return -1; } else if (!res) - return 0; + return hasread; hasread += res; } TRC (fprintf (stderr, " Out of read loop with hasread=%d, berlen=%d\n",