-
lxccontainer: fix F_OFD_GETLK checks · ec74f3f8Christian Brauner authored
When we check whether an open file description lock has been taken on a file we need to set the l_pid field to 0 otherwise the kernel will send back EINVAL. Additionally, the kernel will not do pid translation and simply set the l_pid value to -1. Fixes https://discuss.linuxcontainers.org/t/container-deleted-or-stopped-when-lxc-ls-executed-concurrently/2439Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
×