Mail Archives: djgpp-workers/2000/10/30/04:37:12
On Sun, Oct 29, 2000 at 08:17:33AM +0200, Eli Zaretskii wrote:
> On Sat, 28 Oct 2000, Peter J. Farley III wrote:
> > At 09:25 AM 10/28/00 +0200, Eli Zaretskii wrote:
> > <Snipped>
> > >Note that popen/pclose from our libc also redirect handles with
> > >dup/dup2 and call system() to run the subsidiary program.
> > I guess Laszlo put those in before the current popen/pclose were
> > available.
> I doubt that: our popen/pclose is mostly unchanged from what was released
> with v2.0.
> > Better, I think, if we try to use what's in libc, so that
> > future changes aren't lost to perl. I'll try removing his
> > perl-specific versions and make sure everything still works.
> I'd suggest to as Laszlo first, in cased there's a good reason for what
> he did.
Yes, there is a good reason. The private djgpp popen in perl uses a
delete-on-close flag on the temp file handle - so in case of problems
it's automatically removed. Some times ago I suggested adding this
feature to the official libc - but there was no interest. So I've done
it privately because it looked useful.
Laszlo
- Raw text -