Front page | perl.perl5.porters |
Postings from December 2011
[perl #21776] dup2 on XP
Thread Next
From:
James E Keenan via RT
Date:
December 1, 2011 17:00
Subject:
[perl #21776] dup2 on XP
Message ID:
rt-3.6.HEAD-5084-1322787609-1474.21776-15-0@perl.org
On Mon Mar 31 12:58:25 2003, mgoland wrote:
> Hello guys,
>
> I think that perl 5.8 on winXP has a problem with file descripter
> tables. It fails to properly handle parents STDOUT when I dup2 in
> the child. Here is my script that runs fine on my FreeBSD box. It
> properly redirects childs STDOUT to a file , while leaving parents
> STDOUT to the screen. On an XP box, it redirects both parents and
> childs STDOUT to a file. Any ideas on how to work around it ??
>
In the hope that someone with Win32 access and experience can respond to
this ticket, I have cleaned up the original poster's program somewhat
and am attaching it as 21776.pl. I'm also attaching a simple count.pl
program to serve as the argument for the 'exec' call. On Darwin, the
program appears to execute as the OP intended.
(And, should someone be curious: No, it didn't get a response when it
was cross-posted on beginners@perl.org 8-1/2 years ago.)
Thank you very much.
Jim Keenan
Thread Next
-
[perl #21776] dup2 on XP
by James E Keenan via RT