in reply to Re: Child keeps parent from returning...?
in thread Child keeps parent from returning...?

I'm not very proficient with perl.
Could you give me the commands to close stdin, out and err ?

I'm not using them at least explicitly in the child program.
thanks
live
  • Comment on Re^2: Child keeps parent from returning...?

Replies are listed 'Best First'.
Re^3: Child keeps parent from returning...?
by almut (Canon) on Apr 08, 2009 at 11:33 UTC
    # close close STDOUT; # redirect open STDOUT, '>', "/some/path/to/file" or die "Can't redirect STDOUT: +$!";

    (see open)

    Whether to close or redirect depends on how the child program is using them. Simply closing might not always work.

    I'm not using them at least explicitly in the child program.

    ...but cvs might be. They're 'inherited' across the fork/exec.