From 1ece068e833e4a6dd364379ecfefd88b9f97d2b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 3 Jun 2021 19:23:15 +0200 Subject: [PATCH] core: update comment unit_serialize_item() was dropped in d68c645bd3323ae1f0dfcb8fd74ea6b19681db8a. But "cannot be restored from other sources" is also not entirely true: for example for mounts we may be able to figure out most state from /p/s/mountinfo. So let's make the comment more oblique. --- src/core/unit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/unit.h b/src/core/unit.h index d34d647845e..2db40e51e85 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -543,8 +543,8 @@ typedef struct UnitVTable { bool (*can_reload)(Unit *u); - /* Write all data that cannot be restored from other sources - * away using unit_serialize_item() */ + /* Serialize state and file descriptors that should be carried over into the new + * instance after reexecution. */ int (*serialize)(Unit *u, FILE *f, FDSet *fds); /* Restore one item from the serialization */ -- 2.47.3