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

Re: Remote EOF and MinGW builds


On Saturday 03 April 2010 12:42:33 you wrote:
> Hi,

Hi Thomas,

> As BSD and Cygwin do not support poll() natively, I've adopted and
> ported their emulation code to windows. It seems to work as it should.
> I've attached the modified poll.c code to this mail. If I find some more
> time, I'll try to implement WSAPoll compatibility.
> If you run lib ssh as server, you might consider slightly increase
> FD_SETSIZE . For a client listen to max 64 file handles should be
> sufficient.

I've created an improved version of your code. This should work under Windows 
and other UNIX systems. It covers more cases and shouldn't segfault ;)

http://git.libssh.org/?a=commitdiff&p=asn/libssh&h=a28c16876b4d3354c8104b8cb6c3d33fdfdddff1

Could you try this patch?


Cheers,

	-- andreas


Follow-Ups:
Re: Remote EOF and MinGW buildsAndreas Schneider <mail@xxxxxxxxxxxx>
References:
Re: Remote EOF and MinGW buildsThomas Schmid <schmid-thomas@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org