*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.117 2003/11/29 19:52:01 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.118 2004/01/07 23:03:06 tgl Exp $
*
*-------------------------------------------------------------------------
*/
errmsg("could not open lock file \"%s\": %m",
filename)));
}
- if ((len = read(fd, buffer, sizeof(buffer) - 1)) <= 0)
+ if ((len = read(fd, buffer, sizeof(buffer) - 1)) < 0)
ereport(FATAL,
(errcode_for_file_access(),
errmsg("could not read lock file \"%s\": %m",
return;
}
len = read(fd, buffer, sizeof(buffer) - 100);
- if (len <= 0)
+ if (len < 0)
{
ereport(LOG,
(errcode_for_file_access(),