Merge pull request #6928 from poettering/cgroup-empty-race
rework cgroup empty notification handling (i.e. a fix for #6608)
This commit is contained in:
@@ -2000,6 +2000,9 @@ static void socket_enter_dead(Socket *s, SocketResult f) {
|
||||
if (s->result == SOCKET_SUCCESS)
|
||||
s->result = f;
|
||||
|
||||
if (s->result != SOCKET_SUCCESS)
|
||||
log_unit_warning(UNIT(s), "Failed with result '%s'.", socket_result_to_string(s->result));
|
||||
|
||||
socket_set_state(s, s->result != SOCKET_SUCCESS ? SOCKET_FAILED : SOCKET_DEAD);
|
||||
|
||||
exec_runtime_destroy(s->exec_runtime);
|
||||
|
||||
Reference in New Issue
Block a user