mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
sd-event: Add comment in event_source_offline() for memory pressure
Follow up for d0ddb0aafb
This commit is contained in:
@@ -2988,6 +2988,8 @@ static int event_source_online(
|
||||
break;
|
||||
|
||||
case SOURCE_MEMORY_PRESSURE:
|
||||
/* As documented in sd_event_add_memory_pressure(), we can only register the PSI fd with
|
||||
* epoll after writing the watch string. */
|
||||
if (s->memory_pressure.write_buffer_size == 0) {
|
||||
r = source_memory_pressure_register(s, enabled);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user