]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxccontainer: extend lxccontainer API with set_timeout
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Tue, 17 Jan 2023 16:27:40 +0000 (17:27 +0100)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Fri, 21 Apr 2023 18:15:15 +0000 (20:15 +0200)
commit0fed82b2679139babb14579ab3a4acda150f093b
tree7fee7ef2efc1e0786bbf064f750890d13a11a87b
parenta7dcde0386519803906666614683a81b3f4d2c27
lxccontainer: extend lxccontainer API with set_timeout

lxccontainer set_timeout method allows to set LXC client
timeout for waiting monitor response.

Right now, it's implemented using the SO_RCVTIMEO client
socket option. (But it's the implementation detail that
can be changed in the future.)

This commit doesn't change behavior, because it's just
adds a new option and setter, but not changes any existing
LXC commands implementation. It's also extends internal API
function lxc_cmd with lxc_cmd_timeout.

Issue #4257

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/commands.c
src/lxc/commands_utils.c
src/lxc/commands_utils.h
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h