chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7bfff
)
cgroup: only check once when mode is UNIT_CHECK
author
Gao feng
<gaofeng@cn.fujitsu.com>
Mon, 26 Aug 2013 02:36:45 +0000
(10:36 +0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 28 Aug 2013 12:04:56 +0000
(08:04 -0400)
If the mode is UNIT_CHECK,it means we only want to check if
the paramaters are valid. the first round of cycle already
did this check, no need to check again.
src/core/dbus-unit.c
patch
|
blob
|
history
diff --git
a/src/core/dbus-unit.c
b/src/core/dbus-unit.c
index 4cd3a13fd2c9f68e3a31792f16b7dda90932661a..2ea59b2913883170185460ad96b96eef81d5e41c 100644
(file)
--- a/
src/core/dbus-unit.c
+++ b/
src/core/dbus-unit.c
@@
-981,7
+981,7
@@
int bus_unit_set_properties(
if (dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_INVALID) {
- if (for_real)
+ if (for_real
|| mode == UNIT_CHECK
)
break;
/* Reached EOF. Let's try again, and this time for realz... */