chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update man pages for recent changes
[elogind.git]
/
src
/
mount.c
diff --git
a/src/mount.c
b/src/mount.c
index db8551e854b2902e6a28ccb2d1310ebdadc5f41f..49081d1d97b44a2a424368ea04b25a72ef191240 100644
(file)
--- a/
src/mount.c
+++ b/
src/mount.c
@@
-68,7
+68,7
@@
static void mount_init(Unit *u) {
* the same process group as us, so that the autofs kernel
* side doesn't send us another mount request while we are
* already trying to comply its last one. */
* the same process group as us, so that the autofs kernel
* side doesn't send us another mount request while we are
* already trying to comply its last one. */
- m->exec_context.
no_setsid
= true;
+ m->exec_context.
same_pgrp
= true;
m->timer_watch.type = WATCH_INVALID;
m->timer_watch.type = WATCH_INVALID;
@@
-262,11
+262,7
@@
static int mount_add_target_links(Mount *m) {
if ((r = unit_load_related_unit(UNIT(m), ".automount", &am)) < 0)
return r;
if ((r = unit_load_related_unit(UNIT(m), ".automount", &am)) < 0)
return r;
- if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(am), true)) < 0)
- return r;
-
- return unit_add_dependency(UNIT(am), UNIT_BEFORE, tu, true);
-
+ return unit_add_two_dependencies(tu, UNIT_AFTER, UNIT_WANTS, UNIT(am), true);
} else {
if (!noauto && handle)
} else {
if (!noauto && handle)
@@
-940,7
+936,7
@@
static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) {
m->failure = m->failure || !success;
if (m->control_command) {
m->failure = m->failure || !success;
if (m->control_command) {
- exec_status_
fill
(&m->control_command->exec_status, pid, code, status);
+ exec_status_
exit
(&m->control_command->exec_status, pid, code, status);
m->control_command = NULL;
m->control_command_id = _MOUNT_EXEC_COMMAND_INVALID;
}
m->control_command = NULL;
m->control_command_id = _MOUNT_EXEC_COMMAND_INVALID;
}
@@
-1552,6
+1548,7
@@
const UnitVTable mount_vtable = {
.no_alias = true,
.no_instances = true,
.no_isolate = true,
.no_alias = true,
.no_instances = true,
.no_isolate = true,
+ .show_status = true,
.init = mount_init,
.load = mount_load,
.init = mount_init,
.load = mount_load,