Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2003 15:15:34 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Jeffrey Hsu <hsu@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_descrip.c
Message-ID:  <20030121231533.GE42333@elvis.mu.org>
In-Reply-To: <0H93003IR1FCWK@mta6.snfc21.pbi.net>
References:  <20030121203105.GJ33821@elvis.mu.org> <0H93003IR1FCWK@mta6.snfc21.pbi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jeffrey Hsu <hsu@FreeBSD.org> [030121 13:09] wrote:
> If you don't lock these operations, you could incorrectly lose the result
> of an flock(), which sets different bits in the f_flag field from fcntl().

Ok.  Then are you sure this is the only place where they need protection?
I could have sworn I saw several other places where the file flags are
updated, I'm probably wrong about it and it's just locations where they
are initially set.. but since you're in the area.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030121231533.GE42333>