FastAgi Wackiness

Hi.
I Hope someone can help point me in the right direction regarding FastAgi. I have the FastAGi working fine, except that when the perl script uses the "exit"
command, not only does the FastAgi instance stop running, but also the whole FastAgi program stops. When it is called for the second time, it doesnt work because the process is not running.

It always exits here:
sub mycallback {
my($returncode) = @_;
exit($returncode);
}

Any pointers will be great!
Thanks
Clive

Without seeing more of the script I can only guess that you’d want return instead of exit. FastAGI scripts are meant to stay running. Telling it to exit will exit the entire program.