bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]: poll module issue on Win32


From: Paolo Bonzini
Subject: Re: [PATCH]: poll module issue on Win32
Date: Fri, 12 Sep 2008 06:34:05 +0200
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Bruno Haible wrote:
> Yoann Vandoorselaere wrote:
>>             r = recv (pfd[i].fd, data, sizeof (data), MSG_PEEK);
>> +            
>> +# ifdef WIN32
>> +           if (r < 0 && GetLastError() == 10057) /* server socket */
>> +              socket_errno = ENOTCONN;
>> +           else
>> +# endif
> 
> I thought that after using a winsock function, you need to check
> WSAGetLastError() and not GetLastError()? [1]
> 
> Also, is there no symbolic, self-explanatory name instead of 10057?

It is temporary anyway; Yoann seems to be the main user of poll on Win32
and if he helps testing the native implementation, it will get in sooner.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]