1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

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.
This commit is contained in:
Michal Schmidt 2011-12-17 01:33:40 +01:00
parent 4f025f4c4f
commit 0b1f4ae635

View File

@ -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;