Friday, July 13, 2007

[BLUG] Unix conventions for controlling file access

I'm curious to get opinions on this. I'm working with some support
technicians for a software company that shall remain nameless for now.

Anyways, a problem came up where temporary files are being written to
/tmp by a program and then showing up in the output of lsof as
(deleted). When talking with the support people about this, they said
that their method of controlling access to these files is to create
them, then unlink the file while the program is still running. This
makes the entry disappear from the directory listing. The program
should still be able to access the file when the filehandle is open, but
for the most part other programs cannot access it.

What do you think about this?

--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: