chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
condition: fix dumping of conditions
[elogind.git]
/
src
/
service.c
diff --git
a/src/service.c
b/src/service.c
index c74e8a009f17c313e27180039463b81e666d4d8b..728ca0b0180ece820552ad496eff21c227a09b41 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-406,7
+406,7
@@
static int sysv_fix_order(Service *s) {
/* FIXME: Maybe we should compare the name here lexicographically? */
/* FIXME: Maybe we should compare the name here lexicographically? */
- if (
!
(r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0)
+ if ((r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0)
return r;
}
return r;
}
@@
-1024,7
+1024,7
@@
static int fsck_fix_order(Service *s) {
else
continue;
else
continue;
- if (
!
(r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0)
+ if ((r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0)
return r;
}
return r;
}
@@
-1882,6
+1882,7
@@
static void service_enter_signal(Service *s, ServiceState state, bool success) {
wait_for_exit = true;
set_free(pid_set);
wait_for_exit = true;
set_free(pid_set);
+ pid_set = NULL;
}
}
}
}