in reply to accept on listening socket seems affected by threads->detach()

I tried with v5.8.8 and v5.10.0 on Fedora C9 and it works without leaving the main loop after a detached thread finishes. May be your create thread function does not actually create a thread. you can check with a simple script to verify you actually have two threads running.

update: typo

  • Comment on Re: accept on listening socket seems affected by threads->detach()

Replies are listed 'Best First'.
Re^2: accept on listening socket seems affected by threads->detach()
by Perlbotics (Archbishop) on Jul 24, 2008 at 12:14 UTC
    Same result (works fine) with Perl 5.8.8 on SuSE 10.2 with -lpthread. Wonder if that helps...? What does perl -V tell about your Perl installation, esp. threading support?
Re^2: accept on listening socket seems affected by threads->detach()
by Anonymous Monk on Jul 24, 2008 at 14:01 UTC
    Yes, the threads were created (checked $thred->tid).
    I've now tested the code at a Linux machine and perl 5.8.8 . You're right it really works there. Seems to be something different to blastwave.org 's solaris perl 5.8.8 .

    Thank you for your reply!