summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-22 19:14:11 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-22 19:27:56 +0100
commit66ca4ec48a63ee0e71532148b9b373cda318c7e2 (patch)
treed447ee484b6a1656975e21ed5259ef80105f216c
parent21acf11d407ea93d1b0c99088f9f64adad6cff0e (diff)
job: fix serialization
-rw-r--r--src/core/job.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c
index f053d57349..f791299a9d 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -403,6 +403,11 @@ static bool job_is_runnable(Job *j) {
* job type) or before (in the case of a 'negative' job
* type. */
+ /* Note that unit types have a say in what is runnable,
+ * too. For example, if they return -EAGAIN from
+ * unit_start() they can indicate they are not
+ * runnable yet. */
+
/* First check if there is an override */
if (j->ignore_order)
return true;
@@ -909,7 +914,7 @@ int job_serialize(Job *j, FILE *f, FDSet *fds) {
fprintf(f, "job-ignore-order=%s\n", yes_no(j->ignore_order));
if (j->begin_usec > 0)
- fprintf(f, "job-begin=%llu", (unsigned long long) j->begin_usec);
+ fprintf(f, "job-begin=%llu\n", (unsigned long long) j->begin_usec);
bus_client_track_serialize(j->manager, f, j->subscribed);