From: Lennart Poettering Date: Mon, 7 Jul 2014 15:33:46 +0000 (+0200) Subject: service: flush status text and errno values each time a service is started X-Git-Tag: v216~730 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8cfdb077b8e3da1c47fc1d735d051f21f33144c1;p=elogind.git service: flush status text and errno values each time a service is started We shouldn't show status texts from previous service starts --- 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; }