qmail uses 100% cpu after FreeBSD-5.0 to 5.1 upgrade

Terry Lambert tlambert2 at mindspring.com
Mon Jun 16 04:38:54 PDT 2003


Don Lewis wrote:
> Actually, something seems broken.  I modified my little test program to
> actually read the data, which works just fine, but select() still blocks
> when the writer closes the fifo, so there doesn't seem to be a way to
> detect the EOF.

I think this should be covered under the "exceptional event"
and "read" select flags (a subsequent read will return 0).

Also, you should remember that qmail opens the thing with
non-blocking I/O, and then expects the select to block.  Very
odd program, qmail.

-- Terry


More information about the freebsd-current mailing list