l1ve2love has asked for the wisdom of the Perl Monks concerning the following question:
my $pid = fork; if ( defined $pid ) { unless ($pid) { # Detach from parent setsid or print("Can't detach from parent. notify cvs admin: $ +!"); exec "perl ${script_dir}/check_and_auto_merge.pl $gUSER $lBranc +h"; die "Failed exec auto_merge.pl\n copy log and notify cvs admin\ +n\nExec failed: $!\n"; exit 1; } } print("Parent ended");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Child keeps parent from returning...?
by Bloodnok (Vicar) on Apr 08, 2009 at 09:40 UTC | |
by l1ve2love (Novice) on Apr 08, 2009 at 11:21 UTC | |
|
Re: Child keeps parent from returning...?
by almut (Canon) on Apr 08, 2009 at 10:25 UTC | |
by l1ve2love (Novice) on Apr 08, 2009 at 11:25 UTC | |
by almut (Canon) on Apr 08, 2009 at 11:33 UTC | |
|
Re: Child keeps parent from returning...?
by l1ve2love (Novice) on Apr 08, 2009 at 12:16 UTC | |
by almut (Canon) on Apr 08, 2009 at 12:46 UTC |