[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Simultaneous file access.



Hi,

I am stuck with a problem about simultaneous access of a file by two apps. The file is being ftped into a directory. The point is that I must not start reading it until the ftp of the file is complete.

I tried to obtain an exclusive lock on the file using fcntl. If it failed, then it is being written to by somebody else, right? But that succeeded.

Or am I missing something? I would appreciate any help.

Thanks,
Gautam