X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebrasrv.c;h=0404b8fadbe69bddd6ce29b58d5e10bb0614b3a0;hb=5a5e8d852ce98a805b02679a971cdf4216d94177;hp=fad0df7c7f044e4b01674f43f78ab8e67d27a637;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;p=idzebra-moved-to-github.git diff --git a/index/zebrasrv.c b/index/zebrasrv.c index fad0df7..0404b8f 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -770,7 +770,11 @@ static void bend_start(struct statserv_options_block *sob) char pidstr[30]; sprintf(pidstr, "%ld", (long) getpid()); - write(fd, pidstr, strlen(pidstr)); + if (write(fd, pidstr, strlen(pidstr)) != strlen(pidstr)) + { + yaz_log(YLOG_ERRNO|YLOG_FATAL, "write fail %s", pidfname); + exit(1); + } } } #endif