[Top][All Lists]

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

Re: new readpipe patch

From: Paul Eggert
Subject: Re: new readpipe patch
Date: Sun, 12 May 2002 22:39:49 -0700 (PDT)

> Date: Sun, 12 May 2002 13:25:22 -0400 (EDT)
> From: address@hidden (Bison user)

> +    if (write (to, m4_buffer, len) != len) 
> +      error (EXIT_FAILURE, errno, "write");
> +    close(to);
> +
> +    skel_in = fdopen (from, "r");

This doesn't sound correct to me.  The subprocess can start writing to
'from' before it finishes reading from 'to', which means that the
initial 'write' quoted above can hang.

reply via email to

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