"Janice" <no@mail.com> writes:
How to obtain the lock status of a file held by other process?
If I read the file that is locked by other process, the read would
return -1.
If the file is locked by other process, how to put the read to sleep for a
second and try again after a period of time?
There's no way to do this in standard C. Try a newsgroup that's
specific to your system (comp.unix.programmer,
comp.os.ms-windows.programmer.win32, or whatever).
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.