PATCH: Fix poll() impl on Win32

2009-01-07 Thread Daniel P. Berrange
I've been using the GNULIB poll() impl in libvirt on Win32 (well Mingw + WINE) and found it was producing really wierd results, such ret=-1 + errno=EAGAIN, or ret=0 even though requested timeout was infinite. After a little debugging I discovered a missing initialization of the 'rc' variable in t

Re: PATCH: Fix poll() impl on Win32

2009-01-07 Thread Jim Meyering
Jim Meyering wrote: > "Daniel P. Berrange" wrote: >> I've been using the GNULIB poll() impl in libvirt on Win32 (well Mingw + >> WINE) and found it was producing really wierd results, such ret=-1 + >> errno=EAGAIN, or ret=0 even though requested timeout was infinite. >> After a little debugging I

Re: PATCH: Fix poll() impl on Win32

2009-01-07 Thread Paolo Bonzini
Jim Meyering wrote: > "Daniel P. Berrange" wrote: >> I've been using the GNULIB poll() impl in libvirt on Win32 (well Mingw + >> WINE) and found it was producing really wierd results, such ret=-1 + >> errno=EAGAIN, or ret=0 even though requested timeout was infinite. >> After a little debugging I

Re: PATCH: Fix poll() impl on Win32

2009-01-07 Thread Jim Meyering
"Daniel P. Berrange" wrote: > I've been using the GNULIB poll() impl in libvirt on Win32 (well Mingw + > WINE) and found it was producing really wierd results, such ret=-1 + > errno=EAGAIN, or ret=0 even though requested timeout was infinite. > After a little debugging I discovered a missing initi