The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your code as is, but with the Net::SMTP stuff commented out and replaced by a couple of sleeps, functions perfectly. Ie. The threads start, read the work items off the queue, terminate their loops and exit. And the joins all complete successfully and cleanly. Under 5.8.6 and 5.8.8. So, maybe Net::SMTP isn't thread safe? Try starting one thread and see if that completes successfully? If one works, try starting 2. If you post again, properly indented code would be good. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re: Hanging Threads
by BrowserUk
|
|