Re: Accept / Connect will block using threads and UNIX domain sockets

[email protected] ("Jerry D. Hedden") Mon, 29 Jan 2007 10:12:17 -0800 (PST)
Newsgroups perl.ithreads
Message-ID <[email protected]>
Sebastian Weber wrote:
> I tested around a little bit and found, that 
> just using "require Socket;import Socket ':all';" instead of "use 
> Socket;" solves the problem.

It was probably a coincidence that your code worked.  Loading
non-thread-safe modules should be done separately in the child threads
and main thread (after launching the child threads) so that neither
copy interferes with the other.


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097