Check if process(es) of a cgroup were killed by Kernel OOM killer
or systemd-oomd before we send the cgroup empty notification.
This allows us to show the right exit state(ServiceResult)
log_debug_errno(r, "Failed to reenable cgroup empty event source, ignoring: %m");
}
+ /* Update state based on OOM kills before we notify about cgroup empty event */
+ (void) unit_check_oom(u);
+ (void) unit_check_oomd_kill(u);
+
unit_add_to_gc_queue(u);
if (UNIT_VTABLE(u)->notify_cgroup_empty)