chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: either ignore or handle mount failures
[elogind.git]
/
src
/
core
/
target.c
diff --git
a/src/core/target.c
b/src/core/target.c
index 68be22b38df3acf149afc52ab8f78e7550392fc9..5f64402475976643b1532ba9e9dd0c24cecd997c 100644
(file)
--- a/
src/core/target.c
+++ b/
src/core/target.c
@@
-19,13
+19,9
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <errno.h>
-#include <signal.h>
-#include <unistd.h>
#include "unit.h"
#include "target.h"
#include "unit.h"
#include "target.h"
-#include "load-fragment.h"
#include "log.h"
#include "dbus-target.h"
#include "special.h"
#include "log.h"
#include "dbus-target.h"
#include "special.h"
@@
-107,7
+103,7
@@
static int target_load(Unit *u) {
return 0;
}
return 0;
}
-static int target_coldplug(Unit *u) {
+static int target_coldplug(Unit *u
, Hashmap *deferred_work
) {
Target *t = TARGET(u);
assert(t);
Target *t = TARGET(u);
assert(t);
@@
-137,7
+133,7
@@
static int target_start(Unit *u) {
assert(t->state == TARGET_DEAD);
target_set_state(t, TARGET_ACTIVE);
assert(t->state == TARGET_DEAD);
target_set_state(t, TARGET_ACTIVE);
- return
0
;
+ return
1
;
}
static int target_stop(Unit *u) {
}
static int target_stop(Unit *u) {
@@
-147,7
+143,7
@@
static int target_stop(Unit *u) {
assert(t->state == TARGET_ACTIVE);
target_set_state(t, TARGET_DEAD);
assert(t->state == TARGET_ACTIVE);
target_set_state(t, TARGET_DEAD);
- return
0
;
+ return
1
;
}
static int target_serialize(Unit *u, FILE *f, FDSet *fds) {
}
static int target_serialize(Unit *u, FILE *f, FDSet *fds) {