]> git.ipfire.org Git - thirdparty/lxc.git/commit
start: handle kernel header and kernel incompatability
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 Jan 2020 11:25:30 +0000 (12:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 22 Jan 2020 13:58:52 +0000 (14:58 +0100)
commit83aa9509f0a8db6739aa13e9be2652b4092842c2
tree06dea76375b2c1f0f723d5518bb7e85a66daef9c
parentb4b6291c7fc3602b10a05d541d80bb00d2e138bf
start: handle kernel header and kernel incompatability

We might e.g. be compiled in a container with old kernel headers. In this
scenario CLONE_PIDFD will work but pidfd_send_signal() might not be detected
because __NR_pidfd_send_signal is not defined because the kernel headers don't
match the kernel version.

This explains and fixes test-suite hangs on Jenkins I've recently debugged.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c