X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=92e2f734ae696b398aab1e3f4a9eb39993ce2205;hp=83e51a7abad2e4a42bc30753ff45a7b9d4b5e13d;hb=3ef63c317481c2b3f1fe39e1b0f130aac3544522;hpb=cba6e0627d659a33df31aaa74d0d701c4bc9f317 diff --git a/src/core/mount.c b/src/core/mount.c index 83e51a7ab..92e2f734a 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1225,7 +1225,7 @@ static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) { m->control_pid = 0; - if (is_clean_exit(code, status)) + if (is_clean_exit(code, status, NULL)) f = MOUNT_SUCCESS; else if (code == CLD_EXITED) f = MOUNT_FAILURE_EXIT_CODE; @@ -1797,6 +1797,8 @@ DEFINE_STRING_TABLE_LOOKUP(mount_result, MountResult); const UnitVTable mount_vtable = { .object_size = sizeof(Mount), + .exec_context_offset = offsetof(Mount, exec_context), + .sections = "Unit\0" "Mount\0"