In a message written on Mon, Oct 27, 2003 at 10:31:18AM -0500, Dan Langille wrote: > Any suggestions?
Here's a slightly backwards concept. We're all familar with how you can open a file, remove it from the directory, and not have it "go away" until the application closes it. Well, extend those semantics to the namespace. That is, have a directory where any name that does not exist can be opened RW, any name that does exist can be opened RO. A file is automatically removed when no one has an open descriptor to it anymore. So, the "server app" does: open(pidfile) write(pid, pidfile) flush(pidfile) [go do all the server stuff, and then at shutdown] close(pidfile) All other apps just read it, but can't overwrite it because it's RO. I'm not sure how useful this sort of file system change would be in practice, but it would solve the problem, no? -- Leo Bicknell - [EMAIL PROTECTED] - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - [EMAIL PROTECTED], www.tmbg.org
pgp00000.pgp
Description: PGP signature