www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/18/10:06:21

Date: Sun, 18 Oct 1998 16:06:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
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: <Pine.SUN.3.91.981018160408.3432D-100000@is>
MIME-Version: 1.0
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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019