summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-24 02:41:34 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-24 02:41:38 +0100
commit312732cfaf63b463b2062c47fddb2d639a5fe635 (patch)
tree8354038ee198dc1b8ed6e100e9b9c9797b26d55f /src/manager.c
parent5f8738667f3b4a1606fd714d3da6cac5784c4053 (diff)
job: start job timeout on enqueuing not when we start to process a job
This practically reverses 23e1e0c4a3bc93fb841ac9575953ed5d0ef5282d. This makes it easier to timeout individual jobs so that this timeout can be relied on, since blocked dependencies will not influence the timeout.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index 6759bbac97..f266aaa01c 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -1216,6 +1216,7 @@ static int transaction_apply(Manager *m) {
job_add_to_run_queue(j);
job_add_to_dbus_queue(j);
+ job_start_timer(j);
log_debug("Installed new job %s/%s as %u", j->unit->meta.id, job_type_to_string(j->type), (unsigned) j->id);
}