in reply to Child keeps parent from returning...?

Try redirecting/closing the standard file handles (STDOUT, STDERR, and maybe also STDIN) in the child before you call exec.

Replies are listed 'Best First'.
Re^2: Child keeps parent from returning...?
by l1ve2love (Novice) on Apr 08, 2009 at 11:25 UTC
    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
      # 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.