Help for this page

Select Code to Download


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