summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-12-17 01:33:40 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-12-17 01:33:40 +0100
commit0b1f4ae63548c627decd80e3e2fd030c2d4f3af6 (patch)
tree820fce06a9bd9d7aa1ccecab2b896c32486c22ea /src
parent4f025f4c4f9e043a06a05bcd4fc9fa65ee232ecc (diff)
execute: fix losing of start timestamps
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.
Diffstat (limited to 'src')
-rw-r--r--src/execute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c
index 481725d63d..abbbfddedc 100644
--- 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;