mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 21:21:49 +00:00
service: flush status text and errno values each time a service is started
We shouldn't show status texts from previous service starts
(cherry picked from commit 8cfdb077b8)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
384bcccd9d
commit
853896f09d
@@ -1699,6 +1699,9 @@ static int service_start(Unit *u) {
|
||||
s->main_pid_alien = false;
|
||||
s->forbid_restart = false;
|
||||
|
||||
free(s->status_text);
|
||||
s->status_text = NULL;
|
||||
|
||||
service_enter_start_pre(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user