]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
manager: print ephemeral information about running jobs' timeouts (v2)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Jan 2014 23:25:39 +0000 (18:25 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 Jan 2014 00:07:13 +0000 (19:07 -0500)
commit8bb310c3c6f5a52f2d483fd8dfb16ca66ecf7a5f
tree1ac5ddf657b46a7a7beb2cacc2b2a9bf9150f80d
parent0f010ef2130e887347212d4a3f81abafc78985a0
manager: print ephemeral information about running jobs' timeouts (v2)

This reverts commit 28c758de94bc8ba97b89d9dab3f517cf466978d0
but makes job_coldplug smarter.

In (v1) I changed the job start timestamp to be always set, so the
start time can be reported in the cylon eye message.  The bug was that
when deserializing jobs, they would be ignored if their start
timestamp was unset which was synonymous with no timeout. But after
the change, jobs would have a start timestamp set despite having no
timeout. After deserialization they would be considered immediately
expired. Fix this by checking if the timeout is not zero when
considering jobs for expiration.
src/core/job.c
src/core/manager.c