develooper Front page | perl.perl5.porters | Postings from December 2003

BUG fork/pipe on windows

Thread Previous | Thread Next
From:
Uri Guttman
Date:
December 8, 2003 00:11
Subject:
BUG fork/pipe on windows
Message ID:
x73cbvohjn.fsf@mail.sysarch.com

no one responded to this post and i think it is important. there is
either a bug in fork for winblows or a bug in the docs. the example
shown in perlfork does not work on windows. i worked around it by using
socketpair and that is fine but still someone should verify what i found
and hopefully something can be done to fix it.

thanx,

uri

>>>>> "UG" == Uri Guttman <uri@stemsystems.com> writes:

  UG> i am trying to use the fork/pipe examples at the end of perlfork
  UG> (5.8). when i run the pipe_to_fork example it works. the pipe_from_fork
  UG> just hangs.


  UG> in the docs for open there is coverage of open(FILEHANDLE, "<&=$fd")
  UG> (which is used in pipe_to_fork)

  UG> but there in no mention of the other direction which would be
  UG> open(FILEHANDLE, ">&=$fd") which is used in pipe_from_fork.

  UG> so there is either a bug in open in not supporting
  UG> open(FILEHANDLE, ">&=$fd") or in the perlfork doc for mentioning it and
  UG> showing a broken example.

  UG> any ideas or answers?


-- 
Uri Guttman  ------  uri@stemsystems.com  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About