in reply to fork question
Maybe you take STDOUT away too early (buffering and race condition) ?
Does this work?Update: Ahhh, brainglitch. Forget this!my $pid; if ($pid = fork) { local $| = 1; # patch1 print qq~<response type="4" status="1">~; print qq~ </response>\n~; } elsif (defined $pid) { sleep 1; # patch2 close STDOUT; #exit; my $myba = mybaapp->new(); my $linkbase = $myba->mob2myba($url); $myba->sendinfo($smsfrurl); exit; } else { die "Major error: $!"; } #end fork
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: fork question
by jonnyfolk (Vicar) on Aug 08, 2011 at 15:15 UTC | |
by zentara (Cardinal) on Aug 08, 2011 at 17:54 UTC |