Re: 'select' on MS-Windows returns without waiting for pipes

2014-06-10 Thread Eli Zaretskii
> Date: Tue, 10 Jun 2014 23:53:50 +0100 > From: Pádraig Brady > CC: bug-gnulib@gnu.org > > > Right you are. So this should be something like > > > > clock_t tnow = clock (); > > if (tend >= tnow) > > wait_timeout = tend - tnow; > > else > > wait_timeout = 0; > > Pushed the attach

Re: 'select' on MS-Windows returns without waiting for pipes

2014-06-10 Thread Pádraig Brady
On 06/10/2014 03:47 AM, Eli Zaretskii wrote: >> Date: Tue, 10 Jun 2014 00:55:14 +0100 >> From: Pádraig Brady >> CC: bug-gnulib@gnu.org >> >>> + /* How much is left to wait? */ >>> + if (wait_timeout != INFINITE) >>> +{ >>> + wait_timeout = tend - clock (); >>> + if (wait_timeout <

Re: 'select' on MS-Windows returns without waiting for pipes

2014-06-09 Thread Paul Eggert
Eli Zaretskii wrote: Wasn't there a TAB there? Gnulib doesn't use tabs, which probably explains the glitch.

Re: 'select' on MS-Windows returns without waiting for pipes

2014-06-09 Thread Eli Zaretskii
> Date: Tue, 10 Jun 2014 00:55:14 +0100 > From: Pádraig Brady > CC: bug-gnulib@gnu.org > > > + /* How much is left to wait? */ > > + if (wait_timeout != INFINITE) > > +{ > > + wait_timeout = tend - clock (); > > + if (wait_timeout < 0) > > + wait_timeout = 0; > > Strange inden

Re: 'select' on MS-Windows returns without waiting for pipes

2014-06-09 Thread Pádraig Brady
On 06/08/2014 04:32 PM, Eli Zaretskii wrote: > The gnulib implementation of 'select' for MS-Windows returns > immediately with a zero value when it is called to wait for input from > an anonymous pipe (e.g., a pipe created by a call to 'pipe' or > 'pipe2'). This was discussed here in this thread:

'select' on MS-Windows returns without waiting for pipes

2014-06-08 Thread Eli Zaretskii
The gnulib implementation of 'select' for MS-Windows returns immediately with a zero value when it is called to wait for input from an anonymous pipe (e.g., a pipe created by a call to 'pipe' or 'pipe2'). This was discussed here in this thread: http://lists.gnu.org/archive/html/bug-gnulib/2011-