Fixes: 04a2edd ("uxc: make force-delete kill container process")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
static int uxc_delete(char *name, bool force)
{
struct blob_attr *cur, *tb[__CONF_MAX];
+ struct runtime_state *s = NULL;
int rem, ret = 0;
bool found = false;
char *fname;
if (!found)
return ENOENT;
+ s = avl_find_element(&runtime, name, s, avl);
+
if (s && s->running) {
if (force) {
- ret = uxc_kill(name, SIGKILL));
+ ret = uxc_kill(name, SIGKILL);
if (ret)
goto errout;