summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-06-03 19:23:15 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-06-04 10:51:19 +0200
commit1ece068e833e4a6dd364379ecfefd88b9f97d2b9 (patch)
treec33fa36acdb7bf8f57e6d9035be1c1de9e630220 /src/core/unit.h
parent771bdb6aaeb2873011edb72c8f861c41414563d9 (diff)
downloadsystemd-1ece068e833e4a6dd364379ecfefd88b9f97d2b9.tar.gz
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.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index d34d647845..2db40e51e8 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 */