> This works on Linux by persisting socket.fileno from the parent process a=
nd
> calling TCPSocket.for_fd in the child process. On Windows, some tweaks to
> this approach (wrapping _get_osfhandle and _open_osfhandle) will get me m=
ost
> of the way there, but still falls a little short. I=92ve done enough debu=
gging
> to point out the code/design in the Ruby source that is causing this
> failure, in case you=92d like me to explain. I=92m not committed to this
> approach, but I haven=92t been able to think of another one.

I'm not sure how to do it in pure ruby.  Looks lke it is possible
using WSADuplicateSocket

http://stackoverflow.com/questions/670891/is-there-a-way-for-multiple-proce=
sses-to-share-a-listening-socket

if you want to.
-=3Dr