From 8cfdb077b8e3da1c47fc1d735d051f21f33144c1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 7 Jul 2014 17:33:46 +0200 Subject: [PATCH] service: flush status text and errno values each time a service is started We shouldn't show status texts from previous service starts --- src/core/service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/service.c b/src/core/service.c index d5aff9909..0f542edb4 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1699,6 +1699,10 @@ static int service_start(Unit *u) { s->main_pid_alien = false; s->forbid_restart = false; + free(s->status_text); + s->status_text = NULL; + s->status_errno = 0; + service_enter_start_pre(s); return 0; } -- 2.30.2