Comment 4 for bug 1067336

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1067336] Re: maas startup can leave lock file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/16/2012 5:40 PM, Gavin Panella wrote:
> The presence of the file doesn't matter so much because the lock
> is taken with lockf/flock. The file ought to not be there after a
> reboot though:
>
> $ mount | fgrep /run/lock none on /run/lock type tmpfs
> (rw,noexec,nosuid,nodev,size=5242880)
>
It is taken with a FileLock which creates a different file and
hardlinks it to the lock location.

It isn't open O_EXCL. That is a different way to do it, but not how
the startup.lock file is taken.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlB9bM8ACgkQJdeBCYSNAAO6oQCfVYJwK/DYQFm+wq1pItkACF++
8LoAn0LW29Wcw4VlhCVqdrXiQ++sd0WL
=f/Oa
-----END PGP SIGNATURE-----