On Friday, April 26, 2002, at 10:01 , Alex Read wrote:
[..]
> #!/usr/bin/perl
> use strict;
>
> defined(my $pid = fork ) or die "Could not fork: $!";
> if ($pid){
> print "Content-type: text/html\n\n<html>";
> print "\nHI1\n\n</html>\n\n";
> exit;
> } else {
> close(STDIN);
> close(STDOUT);
> close(STDERR);
> exec 'sleep 10 ;echo "HI2"'
> }
my complements to bob on the 'define' exception handler,
but doesn't this still need
$SIG{CHLD} = "IGNORE";
so that the parent 'officially' conceeds that it
is abandoning the child to the good offices of init
to reap???
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]