Christopher Smith wrote:
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.

Actually, on that one, I think there is. You have to use some special magic call to write the file descriptor to a pipe or some such, and the other end gets the file opening. Not that I'd ever use such a thing, but clearly someone needed it. I remember reading about it when someone wanted to pass like an X11 window handle to a different process or something.

--
  Darren New / San Diego, CA, USA (PST)
    His kernel fu is strong.
    He studied at the Shao Linux Temple.

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to