HP3000-L Archives

October 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Wed, 10 Oct 2001 15:28:20 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Ron Wuerth wrote:
>
> Mark & Ted...you guys are my heroes! :-)
>
> I can confirm these results also.
>
> I was starting to wonder how I could manipulate the file descriptors
> directly
> in Perl, after seeing it done in C examples.  Though I did read somewhere
> that as Ted said open() with ">&" or "<&" should call a dup2();

It's just a guess, but ">&" and "<&" might be having problems if Perl is using
fcntl() for some reason.

The MPE port of Perl currently isn't smart enough to switch between fcntl() and
sfcntl() if sockets are being used, and fcntl() will choke or behave wrongly on
sockets.

Using POSIX::dup2() solves the problem at a low level where fcntl() won't be
involved.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2