Ask a Question related to UNIX Programming, Design and Development.
-
Amrith #1
File Lock
How can we know when a file is locked using flock system call in linux.
Thanks
Amrith Guest
-
lock file
Using Contribute version 3. Drafts erased prior to publishing and now unable to edit. Receive error message stating that someone else is editing... -
Cannot Lock aspx File
When I click on the Edit Page button, I receive the following error: Cannot lock the page to prevent other users from editing it. Please try... -
#40008 [NEW]: lock file
From: wisans at gmail dot com Operating system: window xp PHP version: 5.2.0 PHP Bug Type: Performance problem Bug... -
Anyone else have a file lock problem?
We have a problem with File Locks on systems with Illustrator 10 or CS installed on them. It is intermittent so it has been a problem to isolate.... -
Best way to lock and open a file
I have a single line file where the line will be read and updated each time it is opened. My question is I need to open it with a lock so noone... -
Barry Margolin #2
Re: File Lock
In article <f253dece.0307072302.3bf31538@posting.google.com >,
Amrith <amrith@programmer.net> wrote:Try to lock it using flock().>How can we know when a file is locked using flock system call in linux.
--
Barry Margolin, [email]barry.margolin@level3.com[/email]
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Barry Margolin Guest
-
Chuck Dillon #3
Re: File Lock
Amrith wrote:
I'm going to guess that you mean 'whether a file is locked as a result> How can we know when a file is locked using flock system call in linux.
>
> Thanks
of a call to flock'. Use flock to try and lock it with a different
process. man flock.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
Chuck Dillon Guest
-
Marc Rochkind #4
Re: File Lock
On 8 Jul 2003 00:02:46 -0700, Amrith <amrith@programmer.net> wrote:
Others have answered... but it's better in general to use lockf, which is> How can we know when a file is locked using flock system call in linux.
>
> Thanks
>
standard.
--Marc
Marc Rochkind Guest
-
Geoff Clare #5
Re: File Lock
Marc Rochkind <rochkind@basepath.com> writes:
>> How can we know when a file is locked using flock system call in linux.It's better still to use fcntl(), which is mandatory in POSIX.1 (whereas>Others have answered... but it's better in general to use lockf, which is
>standard.
lockf() is one of the XSI optional functions).
--
Geoff Clare <nospam@gclare.org.uk>
Geoff Clare Guest



Reply With Quote

