in reply to Re: Forking in a CGI program on Windows systems
in thread Forking in a CGI program on Windows systems

Hey relax99,
I was wondering if you would post the code. Here is the code that I'm trying and I'm not able to have my page redirect right away. It still waits until the other process is finished to redirect.
Thanks for your help!
if (my $pid = fork)
{
	print redirect("buildlist.php");
}
elsif (defined $pid)
{
close(STDIN);
close(STDOUT);
close(STDERR);
#open STDIN, "</dev/null";
#open STDOUT, ">/dev/null";

sleep (10);
open (FILE, "> test.txt");
print FILE "TESTING CAPABILITY";
close FILE;
exit;
}
  • Comment on Re: Re: Forking in a CGI program on Windows systems