]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
util-linux: Add fcntl-lock
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Mar 2024 13:02:51 +0000 (13:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Mar 2024 22:18:39 +0000 (22:18 +0000)
commitd2b784110e2c3df8a0a41e4819cf2de9003f9fa3
treebea2f619dda6c913c9d7007251b242e45f07cacf
parent24078c0542626f74c93203d17ab4b2bb2f9b5630
util-linux: Add fcntl-lock

Add a version of flock that uses the fnctl based lockf locking instead of
flock based locks. This allows us to take the same lock that opkg would
use from a shell script. The two different locking mechanisms operate
independently of each other.

Inserting this C file into the util-linux build seems like the easiest/best
place to insert the code. At this point it hasn't been discussed with upstream.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/util-linux/util-linux.inc
meta/recipes-core/util-linux/util-linux/fcntl-lock.c [new file with mode: 0644]
meta/recipes-core/util-linux/util-linux_2.39.3.bb