]> err.no Git - systemd/commit
job: serialize jobs properly
authorMichal Schmidt <mschmidt@redhat.com>
Sun, 22 Apr 2012 23:24:04 +0000 (01:24 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 23 Apr 2012 23:54:15 +0000 (01:54 +0200)
commit39a18c60d07319ebfcfd476556729c2cadd616d6
treeb29036c82f9ae41e1366fea752f9e74ab0a1b29e
parent1b9cea0caa85dce6d9f117638a296b141c49a8fd
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.
src/core/dbus-job.c
src/core/job.c
src/core/job.h
src/core/unit.c
src/core/unit.h