in reply to Bus Error from threading IO::Socket
Personally, I'd re-cast your main loop as:
while( 1 ) { my $c = $lsn->accept; print "Client connected: $c"; threads->create( \&do_stuff, $c )->detach; undef $c; }
Whether that will make the slightest difference on your platform/versions I cannot test, but I have a hunch it might.
|
|---|