chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit-printf: before resolving exec context specifiers check whether the object actual...
[elogind.git]
/
src
/
core
/
mount.c
diff --git
a/src/core/mount.c
b/src/core/mount.c
index 83e51a7abad2e4a42bc30753ff45a7b9d4b5e13d..92e2f734ae696b398aab1e3f4a9eb39993ce2205 100644
(file)
--- 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;
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;
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),
const UnitVTable mount_vtable = {
.object_size = sizeof(Mount),
+ .exec_context_offset = offsetof(Mount, exec_context),
+
.sections =
"Unit\0"
"Mount\0"
.sections =
"Unit\0"
"Mount\0"