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

BUG fork/pipe on windows

Thread Previous | Thread Next
Uri Guttman
December 8, 2003 00:11
BUG fork/pipe on windows
Message ID:

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.



>>>>> "UG" == Uri Guttman <> 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  ------  --------
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About