projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f025f4
)
execute: fix losing of start timestamps
author
Michal Schmidt
<mschmidt@redhat.com>
Sat, 17 Dec 2011 00:33:40 +0000
(
01:33
+0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Sat, 17 Dec 2011 00:33:40 +0000
(
01:33
+0100)
Start timestamps were always cleared before saving exit timestamps.
Fix it by removing a condition that makes no sense any way I look at it.
src/execute.c
patch
|
blob
|
history
diff --git
a/src/execute.c
b/src/execute.c
index
481725d
..
abbbfdd
100644
(file)
--- a/
src/execute.c
+++ b/
src/execute.c
@@
-1860,8
+1860,7
@@
void exec_status_start(ExecStatus *s, pid_t pid) {
void exec_status_exit(ExecStatus *s, ExecContext *context, pid_t pid, int code, int status) {
assert(s);
- if ((s->pid && s->pid != pid) ||
- !s->start_timestamp.realtime <= 0)
+ if (s->pid && s->pid != pid)
zero(*s);
s->pid = pid;