Re: file locking question
From: Barry Margolin (barry.margolin_at_level3.com)
Date: 05/30/03
- Next message: Jens.Toerring_at_physik.fu-berlin.de: "Re: file locking question"
- Previous message: Dann Corbit: "Re: random numbers for long long?"
- In reply to: v_sridhar: "Re: file locking question"
- Next in thread: Dragan Cvetkovic: "Re: file locking question"
- Reply: Dragan Cvetkovic: "Re: file locking question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 May 2003 23:12:55 GMT
In article <2937926.1054247535@dbforums.com>,
v_sridhar <member17620@dbforums.com> wrote:
>
>ok I think I got that wrong. fcntl() needs to be prepared for mandatory
>locking the SySV way( messing with the GID and XGRP bits).But still in
>the above code the parent is not able to write once the child locks the
>file.Would appreciate if anyone could clarify the behaviour.
The parent and child are both writing the file at the same location, so one
will overwrite what the other has written. The locking is irrelevant,
because the parent never checks the lock.
-- Barry Margolin, barry.margolin@level3.com 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.
- Next message: Jens.Toerring_at_physik.fu-berlin.de: "Re: file locking question"
- Previous message: Dann Corbit: "Re: random numbers for long long?"
- In reply to: v_sridhar: "Re: file locking question"
- Next in thread: Dragan Cvetkovic: "Re: file locking question"
- Reply: Dragan Cvetkovic: "Re: file locking question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|