in reply to Re: Sharing sockets between the main script and thread
in thread Sharing sockets between the main script and thread
Nevertheless, since I am passing around the file numbers in a shared hash from the thread to the main code, I'm able to set it to a 'special' value when the socket is closed in the thread to tell the main line to close his end as well.
In any event, the key to all this is it need to close the second descriptor and that did the trick. Seems to work like a champ, at least so far...
-mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sharing sockets between the main script and thread
by BrowserUk (Patriarch) on Nov 25, 2008 at 13:11 UTC |