chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: check for return value from get_process_state
[elogind.git]
/
src
/
core
/
job.c
diff --git
a/src/core/job.c
b/src/core/job.c
index 93fa44a506a050ceae598d315c76130cddf46dde..feeb563177e39351d1e05f512cde70403151797c 100644
(file)
--- a/
src/core/job.c
+++ b/
src/core/job.c
@@
-1051,7
+1051,7
@@
int job_coldplug(Job *j) {
assert(j);
assert(j);
- if (j->begin_usec
<
= 0)
+ if (j->begin_usec
== 0 || j->unit->job_timeout =
= 0)
return 0;
if (j->timer_event_source)
return 0;
if (j->timer_event_source)
@@
-1118,9
+1118,6
@@
int job_get_timeout(Job *j, uint64_t *timeout) {
*timeout = MIN(x, y);
*timeout = MIN(x, y);
- log_info("job_get_timeout %s %d/%"PRIu64" %d/%"PRIu64" -> 1/%"PRIu64,
- j->unit->id, r, x, q, y, *timeout);
-
return 1;
}
return 1;
}