Date: Sun, 18 Oct 1998 16:06:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Mumit Khan cc: djgpp AT delorie DOT com Subject: Re: -frepo flag, is it supported? In-Reply-To: <70c3p6$1r02$1@news.doit.wisc.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On 18 Oct 1998, Mumit Khan wrote: > - use a temporary file. Write a popen like replacement that redirects > both stdout and stderr. I believe the djgpp's popen already uses temp > files, so it's already there in source form to reuse. Since DJGPP's `popen' already exists, the simplest change is just to use it instead of the usual Unix fork/exec paradigm. > - dup/save the parent's stdout/err, spawn the child with the new > descriptors for stdout/err, restore parent's stdout/err and read > from the child's stdout/err. This is exactly what `popen' does, so why reinvent the wheel? Of course, the real question is does DJGPP at all need -frepo?