]> granicus.if.org Git - shadow/commit
Do not fail locking if there is a stale lockfile.
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 2 May 2019 12:39:01 +0000 (14:39 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 2 May 2019 12:39:01 +0000 (14:39 +0200)
commit64d7688acb2f3d3e9f6152eb5f2cc069393f08bd
tree38c543f87a0114bde92d4d090e751a2c8c0e3489
parent408b8a548243aebaa6d773beeae8ddf4bb6100f0
Do not fail locking if there is a stale lockfile.

As the lockfiles have PID in the name, there can be no conflict
in the name with other process, so there is no point in using
O_EXCL and it only can fail if there is a stale lockfile from
previous execution that crashed for some reason.
lib/commonio.c