Qmail
[Top] [All Lists]

Re: Is saferead not really safe on Solaris 8?

To: qmail@list.cr.yp.to
Subject: Re: Is saferead not really safe on Solaris 8?
From: "Matthew R. Dempsky" <mrd@alkemio.org>
Date: Fri, 24 Nov 2006 12:59:05 -0600
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <20061124.191156.02469879.hanche@math.ntnu.no>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <20061124.191156.02469879.hanche@math.ntnu.no>
On Fri, Nov 24, 2006 at 07:11:56PM +0100, Harald Hanche-Olsen wrote:
> Surely, if select() said there is data, then read() cannot hang?

Not entirely true: select() can only say the readability/writability
of fds at time of call.  If some other process reads the data before
qmail-smtpd, then qmail-smtpd could hang.

Are you using any 3rd-party wrapper programs that are invoked between
tcpserver and qmail-smtpd?  That's my only guess beyond an OS bug.

<Prev in Thread] Current Thread [Next in Thread>