e43452d
From ef50636c71f16165e58b38c25890213e2a6b073b Mon Sep 17 00:00:00 2001
e43452d
From: Michal Schmidt <mschmidt@redhat.com>
e43452d
Date: Sat, 17 Dec 2011 01:33:40 +0100
f1996ec
Subject: [PATCH] execute: fix losing of start timestamps
e43452d
e43452d
Start timestamps were always cleared before saving exit timestamps.
e43452d
Fix it by removing a condition that makes no sense any way I look at it.
e43452d
(cherry picked from commit 0b1f4ae63548c627decd80e3e2fd030c2d4f3af6)
e43452d
---
e43452d
 src/execute.c |    3 +--
e43452d
 1 files changed, 1 insertions(+), 2 deletions(-)
e43452d
e43452d
diff --git a/src/execute.c b/src/execute.c
e43452d
index 481725d..abbbfdd 100644
e43452d
--- a/src/execute.c
e43452d
+++ b/src/execute.c
e43452d
@@ -1860,8 +1860,7 @@ void exec_status_start(ExecStatus *s, pid_t pid) {
e43452d
 void exec_status_exit(ExecStatus *s, ExecContext *context, pid_t pid, int code, int status) {
e43452d
         assert(s);
e43452d
 
e43452d
-        if ((s->pid && s->pid != pid) ||
e43452d
-            !s->start_timestamp.realtime <= 0)
e43452d
+        if (s->pid && s->pid != pid)
e43452d
                 zero(*s);
e43452d
 
e43452d
         s->pid = pid;