Z
Zhidian Du
I am writing a CGI program.
Why browsers always wait (saying "transferring data from..." from the
status bar) until both parent and chilld finish and say "done".
How can I let browser say "done" immediately after parent finish.
I use a query->end_html() in there and it doesn't work.
Thanks.
FORK: {
if ( $pid = fork ) {
print "Wait for a couple minutes and get your result via email\n";
print $query->end_html();
exit 0;
}
elsif ( defined $pid ) {
#running a couple minutes here
}
elsif ( $! == EAGAIN ) {
sleep 3;
redo FORK;
}
else {
print " Could not fork $!";
return 0;
}
Why browsers always wait (saying "transferring data from..." from the
status bar) until both parent and chilld finish and say "done".
How can I let browser say "done" immediately after parent finish.
I use a query->end_html() in there and it doesn't work.
Thanks.
FORK: {
if ( $pid = fork ) {
print "Wait for a couple minutes and get your result via email\n";
print $query->end_html();
exit 0;
}
elsif ( defined $pid ) {
#running a couple minutes here
}
elsif ( $! == EAGAIN ) {
sleep 3;
redo FORK;
}
else {
print " Could not fork $!";
return 0;
}