diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-04-23 01:24:04 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-04-24 01:54:15 +0200 |
commit | 39a18c60d07319ebfcfd476556729c2cadd616d6 (patch) | |
tree | b29036c82f9ae41e1366fea752f9e74ab0a1b29e /src/core/unit.h | |
parent | 1b9cea0caa85dce6d9f117638a296b141c49a8fd (diff) |
job: serialize jobs properly
Jobs were not preserved correctly over a daemon-reload operation.
A systemctl process waiting for a job completion received a job removal
signal. The job itself changed its id. The job timeout started ticking all
over again.
This fixes the deficiencies.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index d8f4644ca9..1b777bfaab 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -200,7 +200,9 @@ struct Unit { unsigned gc_marker; /* When deserializing, temporarily store the job type for this - * unit here, if there was a job scheduled */ + * unit here, if there was a job scheduled. + * Only for deserializing from a legacy version. New style uses full + * serialized jobs. */ int deserialized_job; /* This is actually of type JobType */ /* Error code when we didn't manage to load the unit (negative) */ |