Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $listener = IO::Socket::INET->new(LocalPort => 12345, Listen => 1) || die "Cannot creat +e socket\n"; while ($client = $listener->accept()) { $pid = fork(); die "Cannot fork: $!" unless defined($pid); if ($pid == 0) { print "Hi!"; exit(0); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exit isn't killing children
by chromatic (Archbishop) on Dec 16, 2002 at 03:00 UTC | |
|
Re: exit isn't killing children
by pg (Canon) on Dec 16, 2002 at 03:30 UTC | |
|
Re: exit isn't killing children
by VSarkiss (Monsignor) on Dec 16, 2002 at 03:21 UTC |