mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 13:11:32 +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 commit8cfdb077b8) (cherry picked from commit853896f09d)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
3fe476cebb
commit
d49a0afefd
@@ -2575,6 +2575,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