Re: [exim] Lost connection during delay

Pàgina inicial
Delete this message
Reply to this message
Autor: Giuliano Gavazzi
Data:  
A: exim-users
Assumpte: Re: [exim] Lost connection during delay
At 2:59 pm +0100 2005/05/06, Philip Hazel wrote:
>On Fri, 6 May 2005, Tony Finch wrote:
>
>> On Fri, 6 May 2005, Nigel Metheringham wrote:
>> >
>> > If you use a select on the appropriate file handle in the exceptions set
>> > then you should notice a close.
>>
>> That might be true on some implementations, but the BSD documentation says
>> "The only exceptional condition detectable is out-of-band data received on
>> a socket." However poll(2) is slightly more flexible in this area, and its
>> POLLHUP flag does what we want.
>
>Are there likely to be systems where poll(2) does not exist? It seems to
>be on Linux, Solaris, Unixware, and FreeBSD, so I guess it's most likely
>on everything...


mmm,

# uname -v
Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004;
root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC
# man poll
No manual entry for poll

but:

#less /usr/include/poll.h

/*---------------------------------------------------------------------------*\
$Id: poll.h,v 1.2 2003/09/13 00:08:18 eseidel Exp $

NAME

         poll - select(2)-based poll() emulation function for BSD systems.


   SYNOPSIS
         #include "poll.h"


         struct pollfd
         {
             int     fd;
             short   events;
             short   revents;
         }


         int poll (struct pollfd *pArray, unsigned long n_fds, int timeout)


g