1 /* Utility: Read line from FIFO
5 * Revision 1.1 1995/05/01 12:43:31 adam
6 * First work on resource monitor program.
18 int lgets (char *buf, int max, int fd)
25 if ((r=read (fd, buf+no, 1)) != 1)
28 gw_log (GW_LOG_WARN|GW_LOG_ERRNO, "lgets", "read fail");
30 gw_log (GW_LOG_WARN, "lgets", "read eof");
36 if (buf[no++] == '\n')