From owner-freebsd-current@FreeBSD.ORG Mon Jun 16 04:38:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4233F37B401; Mon, 16 Jun 2003 04:38:54 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id A816243FDF; Mon, 16 Jun 2003 04:38:53 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfi6a.dialup.mindspring.com ([165.247.200.202] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19RsK4-0002dT-00; Mon, 16 Jun 2003 04:38:53 -0700 Message-ID: <3EEDA848.DFB6E6F2@mindspring.com> Date: Mon, 16 Jun 2003 04:21:44 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Don Lewis References: <200306161109.h5GB9MM7048819@gw.catspoiler.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4c54ec960071150b11123e7dd721ce57fa2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c cc: current@freebsd.org cc: tjr@freebsd.org Subject: Re: qmail uses 100% cpu after FreeBSD-5.0 to 5.1 upgrade X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2003 11:38:54 -0000 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