mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
job: fix serialization
This commit is contained in:
parent
21acf11d40
commit
66ca4ec48a
Notes:
Lennart Poettering
2014-02-17 22:13:32 +01:00
Backport: bugfix
@ -403,6 +403,11 @@ static bool job_is_runnable(Job *j) {
|
|||||||
* job type) or before (in the case of a 'negative' job
|
* job type) or before (in the case of a 'negative' job
|
||||||
* type. */
|
* 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 */
|
/* First check if there is an override */
|
||||||
if (j->ignore_order)
|
if (j->ignore_order)
|
||||||
return true;
|
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));
|
fprintf(f, "job-ignore-order=%s\n", yes_no(j->ignore_order));
|
||||||
|
|
||||||
if (j->begin_usec > 0)
|
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);
|
bus_client_track_serialize(j->manager, f, j->subscribed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user