Re: [PATCH] poll: wait until timeout on pipes (win32)

2014-09-16 Thread Edward Thomson
Updated patch to take INFTIM into account. I have not yet received copyright assignment paperwork from FSF. I will ping them again and forward that along once I receive it. I'm reposting this ahead of that to continue any technical discussions that might arise so that we will hopefully have a fi

Re: [PATCH] poll: wait until timeout on pipes (win32)

2014-09-11 Thread Edward Thomson
On Thu, Sep 11, 2014 at 07:51:59PM +0300, Eli Zaretskii wrote: > Maybe if you import the select module from gnulib, in addition to > poll, the problem will be solved? I don't know. My understanding was that gnulib would not try to replace existing functions. Is there a way to build the gnulib te

Re: [PATCH] poll: wait until timeout on pipes (win32)

2014-09-11 Thread Edward Thomson
On Thu, Sep 11, 2014 at 06:18:19PM +0300, Eli Zaretskii wrote: > > Are you using the latest gnulib? A similar problem in 'socket' was > fixed about 3 months ago (see commit aaaf546); since 'poll' calls > 'select', perhaps that fix also solves your problems in 'poll'? I'm afraid it does not; we u

[PATCH] poll: wait until timeout on pipes (win32)

2014-09-10 Thread Edward Thomson
Hello- I'm very interested in seeing the poll(2) compatibility function wait until the timeout has elapsed before returning on win32. The manual indicates that "under Windows, when passing a pipe, Gnulib's poll replacement might return 0 even before the timeout has passed." Callers expecting pol