Christopher Smith wrote: > Darren New wrote: >> Stewart Stremler wrote: >>> The UNIX approach of "one file, one stream" is a *feature*. >> I think we'll just have to agree to disagree on this one. >> >>> I thought the trick was to create the file, then unlink it immediately. >> That's what I said. That works poorly if you want multiple processes >> using the file while it's open, > > Not at all. You just fork after you create the file. I've also seen some > OS's that let you copy a file descriptor from another process, which is > a pretty cool way to handle it. I don't think there is a way to do that > with Linux. >
There is a way to pass a file descriptor to a child (or any process, I guess) using unix domain sockets. But that mechanism is a bit clumsy google on unix domain socket open file descriptor Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
