From: Zbigniew Jędrzejewski-Szmek Date: Thu, 3 Jun 2021 17:23:15 +0000 (+0200) Subject: core: update comment X-Git-Tag: v249-rc1~69^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ece068e833e4a6dd364379ecfefd88b9f97d2b9;p=thirdparty%2Fsystemd.git 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. --- 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 */