An observation about open($fh, '-|')

Discussion in 'Perl Misc' started by Rainer Weikusat, Dec 27, 2011.

  1. According to the documentation of the open function the return value
    should be

    the pid of the child within the parent process, and 0 within the
    child process. (Use "defined($pid)" to determine whether the
    open was successful.)

    As opposed to this, at least for perl 5.10.1, the open call will die
    ('croak', actually) with a message "Can't fork" when the fork failed
    because of any error except EAGAIN.
    Rainer Weikusat, Dec 27, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet

    Roedy style observation ;-/

    VisionSet, Sep 21, 2003, in forum: Java
    Replies:
    30
    Views:
    830
    Thomas G. Marshall
    Sep 30, 2003
  2. Sameer

    An Interesting Observation

    Sameer, Jan 9, 2006, in forum: Java
    Replies:
    2
    Views:
    332
    Oliver Wong
    Jan 9, 2006
  3. lallous

    std::map observation

    lallous, Jan 14, 2004, in forum: C++
    Replies:
    3
    Views:
    4,141
    Ron Natalie
    Jan 14, 2004
  4. John Coleman

    Observation on "Core Python Programming"

    John Coleman, Oct 29, 2006, in forum: Python
    Replies:
    11
    Views:
    473
    John Salerno
    Oct 30, 2006
  5. Replies:
    40
    Views:
    1,049
    Keith Thompson
    Feb 8, 2005
Loading...

Share This Page