From: Jonathan Paisley Date: 2006-03-25T22:03:09+09:00 Subject: Re: drb over pipes On Fri, 24 Mar 2006 03:30:00 +0900, Reto Schuettel wrote: > There's one small problem with your fdsocket, it seems like the drb > server/thread doesn't always terminate itself when the streams get > closed. But I will try to investigate this by myself tomorrow :). I encountered that too; hence all those exception handlers and calls to exit. I worked around it by ensuring that my code made periodic calls across the DRb connection --- this would trigger an exception. Otherwise, I ended up with loads of server processes doing nothing. I'd be interested to hear if you've figured out how to get notification of the socket closing. > I've appended an example which uses your library. It creates two pipes, > forks, connects the pipes to the stdin/stdout of the child and then execs > the ssh client. The same technique could also be used to communicate > with a child (instead of a unix/tcp socket or a simple plain pipe). IMHO > that's really nice, great work Jonathan! I should have included an example with my code --- although it turns out now that mine is practically the same as yours (I too am using ssh transport). Sorry for omitting the extra code... Jonathan