- or download this
#ignore child processes to prevent zombies
$SIG{CHLD} = 'IGNORE';
- or download this
threads->create ("read_data", $queue, $connection)->detach;
- or download this
sub read_data {
# accept data from the socket and put it on the queue
...
}
close $socket;
}