X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=60067d4d75c2b65e777cad13c8e2d261fa431bde;hb=965e5c5daff660e13a31bfa5a27af733a707ec4b;hp=7a92e1ca60133052baba6d46993fa9070a267585;hpb=aef831369cd2a7a1bd4a58dd96ff8628ed6a85f9;p=elogind.git diff --git a/src/core/mount.c b/src/core/mount.c index 7a92e1ca6..60067d4d7 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -788,6 +788,7 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { UNIT(m)->manager->confirm_spawn, UNIT(m)->manager->cgroup_supported, UNIT(m)->cgroup_path, + manager_get_runtime_prefix(UNIT(m)->manager), UNIT(m)->id, 0, NULL, @@ -820,6 +821,8 @@ static void mount_enter_dead(Mount *m, MountResult f) { exec_runtime_destroy(m->exec_runtime); m->exec_runtime = exec_runtime_unref(m->exec_runtime); + exec_context_destroy_runtime_directory(&m->exec_context, manager_get_runtime_prefix(UNIT(m)->manager)); + mount_set_state(m, m->result != MOUNT_SUCCESS ? MOUNT_FAILED : MOUNT_DEAD); }