From: molnarl AT cdata DOT tvnet DOT hu Date: Tue, 23 Sep 1997 15:52:36 +0200 (MET DST) To: Eli Zaretskii cc: DJGPP workers Subject: Re: a little popen patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 23 Sep 1997, Eli Zaretskii wrote: > > This change eliminates the code that adds a new node to the linked list. > That list holds information from previous calls to `popen' that didn't > have a corresponding `pclose' yet. So, if a program calls `popen' twice > (or more) in a row, the second call overwrites the info of the first. Bad > idea... > > Or did I miss something? > > On Tue, 23 Sep 1997, Molnar Laszlo wrote: > > --- 90,95 ---- > > /* if empty list - just grab new node */ > > if (!pl) > > ! l1->next = pl; > > ! pl = l1; > > > > /* stick in elements we know already */ This works. It adds the new node to the beginning of the list, not to the end. Laszlo