chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
job: start job timer when we begin running the job, not already when we add it to...
[elogind.git]
/
src
/
job.c
diff --git
a/src/job.c
b/src/job.c
index 4700aab6acfb41963fbc8660a8c579299c370b9c..ec57144cb744743a2d3c8639814673cbdfca4688 100644
(file)
--- a/
src/job.c
+++ b/
src/job.c
@@
-376,6
+376,7
@@
int job_run_and_invalidate(Job *j) {
j->state = JOB_RUNNING;
job_add_to_dbus_queue(j);
j->state = JOB_RUNNING;
job_add_to_dbus_queue(j);
+ job_start_timer(j);
/* While we execute this operation the job might go away (for
* example: because it is replaced by a new, conflicting
/* While we execute this operation the job might go away (for
* example: because it is replaced by a new, conflicting
@@
-394,6
+395,7
@@
int job_run_and_invalidate(Job *j) {
* wait */
if (r == -EBADR)
r = 0;
* wait */
if (r == -EBADR)
r = 0;
+
break;
case JOB_VERIFY_ACTIVE: {
break;
case JOB_VERIFY_ACTIVE: {