]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
api wrapper: only reset the current config if this call set it
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 2 Dec 2015 21:30:52 +0000 (14:30 -0700)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 10 Dec 2015 03:53:31 +0000 (22:53 -0500)
commit8164f0e253e9c148a3c3c09eec5e0ebe56602805
treeb16561c98e2bc39b54c56b840f94eec1d33741d1
parent23820d548dcd876bd4a8416f80a4d5d1253cd7dd
api wrapper: only reset the current config if this call set it

Instead of *always* resetting the current_config to null, we should only
reset it if this API call set it.

This allows nesting of API calls, e.g. c->checkpoint() can pass stuff into
criu.c, which can call c->init_pid() and not lose the ability to log stuff
afterwards.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c