chiark / gitweb /
shared: explicitly ignore the return value of wait_for_terminate
[elogind.git] / src / shared / condition.c
index 08bebeee73c22619edd9833dd89b41467cff0972..c5a3caa4dbbe2b0e318d0bcf1850da70a433e042 100644 (file)
@@ -93,8 +93,6 @@ static int condition_test_kernel_command_line(Condition *c) {
         r = proc_cmdline(&line);
         if (r < 0)
                 return r;
-        if (r == 0)
-                return false;
 
         equal = !!strchr(c->parameter, '=');
         p = line;
@@ -103,7 +101,7 @@ static int condition_test_kernel_command_line(Condition *c) {
                 _cleanup_free_ char *word = NULL;
                 bool found;
 
-                r = unquote_first_word(&p, &word);
+                r = unquote_first_word(&p, &word, true);
                 if (r < 0)
                         return r;
                 if (r == 0)