On 8/13/07, Daniel Berger <djberg96 / gmail.com> wrote: > Hiro Asari wrote: > > Hi, there. This is my first patch against ruby. I think I followed > > the guidelines, but if I made mistakes, please kindly point them out. > > > > > > On Solaris (2.6 onwards, I believe), there is a local IPC mechanism > > called doors. > > > > It's not unlike named pipes, in that two processes communicate through > > an entry in a filesystem. This naturally leads to: > > > > door_path="/var/run/syslog_door" > > > > File.door?(door_path) # => true > > File.new(door_path).stat.door? # => true > > File.ftype(door_path) # => "door" > > test ?D, door_path # => true > > <snip> > > I think this is best done as a 3rd party library given that it's > specific to one platform. > > Regards, > > Dan > > Hi, Dan, Now that Solaris is open source, it is conceivable that door library will be ported to another platform, much like ZFS. I have C code to implement most of the changes that I mentioned above--I am using C, because I want to actually use the library to make IPC calls. But then, I'll have to copy the code in file.c mostly verbatim, and make sure that the code stays current with the main trunk. -- Hirotsugu Asari