From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 9 Jul 2008 01:31:54 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20080708213154.GC3636@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20080707133342.GE14790@hell.fortress> <20080707163739.GA12827@dad.imath.kiev.ua> <20080707172402.GF14790@hell.fortress> <20080707175030.GA13961@dad.imath.kiev.ua> <20080707180730.GG14790@hell.fortress> <20080707182709.GA22055@wo.int.altlinux.org> <20080707184050.GH14790@hell.fortress> <20080707232303.GA3951@wo.int.altlinux.org> <20080708104732.GM14790@hell.fortress> <20080708122446.GB9639@wo.int.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aT9PWwzfKXlsBJM1" Content-Disposition: inline In-Reply-To: <20080708122446.GB9639@wo.int.altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] /var/lock/rpm/update-vimhelp X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 21:31:55 -0000 Archived-At: List-Archive: List-Post: --aT9PWwzfKXlsBJM1 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 08, 2008 at 04:24:46PM +0400, Dmitry V. Levin wrote: > On Tue, Jul 08, 2008 at 02:47:32PM +0400, Alexey I. Froloff wrote: > > * Dmitry V. Levin [080708 03:32]: > > > =E8=CF=D4=D1 =D7 =D4=C1=CB=CF=CD =D0=D2=CF=D3=D4=CF=CD =D7=C1=D2=C9= =C1=CE=D4=C5 =C5=D3=D4=D8 race. > > =F7 =CD=CF=A3=CD =D7=C1=D2=C9=C1=CE=D4=C5 =CB=C1=D6=C5=D4=D3=D1 =D4=CF= =D6=C5 =C5=D3=D4=D8 race... > >=20 > > As well as being removed by an explicit F_UNLCK, record locks are > > automatically released when the process terminates or if it > > closes any file descriptor referring to a file on which locks are > > held. This is bad: it means that a process can lose the locks on > > a file like /etc/passwd or /etc/mtab when for some reason a > > library function decides to open, read and close it. > >=20 > > =E9=CC=C9 =CB =C4=D2=D5=C7=C9=CD =D0=D2=CF=C3=C5=D3=D3=C1=CD, =CB=CF=D4= =CF=D2=D9=C5 =CF=D4=CB=D2=D9=D7=C1=C0=D4 =C6=C1=CA=CC, =DC=D4=CF =CE=C5 =CF= =D4=CE=CF=D3=C9=D4=D3=D1? >=20 > =EB=CF=CE=C5=DE=CE=CF. =F1 =D0=CF=CE=D1=CC, =CF =DE=A3=CD =D4=D9 =D3=D0=D2=C1=DB=C9=D7=C1=C5=DB=D8= . ;) =E5=D3=CC=C9 parent =D3=C4=C5=CC=C1=CC open, =C1 =D0=CF=D4=CF=CD fork, child =D7=D9=D0=CF=CC=CE=C9=CC F_SETLK, =C1 parent =D0=CF=D4=CF=CD =DA=C1= =D7=C5=D2=DB=C9=CC=D3=D1, =D4=CF =C2=CC=CF=CB=C9=D2=CF=D7=CB=C1 =D3=CC=C5=D4=C9=D4 =D7 =CD=CF=CD=C5= =CE=D4 =DA=C1=D7=C5=D2=DB=C5=CE=C9=D1 parent. =E4=D2=D5=C7=C9=CD=C9 =D3=CC=CF=D7=C1=CD=C9, =D4=D7=CF=CA =CB=CF=C4 =D2=C1= =C2=CF=D4=C1=D4=D8 =D7 =CE=D9=CE=C5=DB=CE=C5=CD =D7=C9=C4=C5 =CE=C5 =C2=D5= =C4=C5=D4. --=20 ldv --aT9PWwzfKXlsBJM1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkhz3MoACgkQfKvmrJ41Nh6clgCbBOVBMpgwfl1wKjH7gRVSQB3I HMkAoLjruDxio4toTUi/mUwaqNACyYX7 =ht1I -----END PGP SIGNATURE----- --aT9PWwzfKXlsBJM1--