mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
manager: properly write header marker on serialization
This commit is contained in:
parent
b65a25f256
commit
f2382a94e0
@ -2490,15 +2490,17 @@ int manager_serialize(Manager *m, FILE *f, FDSet *fds) {
|
||||
assert(f);
|
||||
assert(fds);
|
||||
|
||||
fprintf(f, "startup-timestamp=%llu %llu\n\n",
|
||||
fprintf(f, "startup-timestamp=%llu %llu\n",
|
||||
(unsigned long long) m->startup_timestamp.realtime,
|
||||
(unsigned long long) m->startup_timestamp.monotonic);
|
||||
|
||||
if (dual_timestamp_is_set(&m->finish_timestamp))
|
||||
fprintf(f, "finish-timestamp=%llu %llu\n\n",
|
||||
fprintf(f, "finish-timestamp=%llu %llu\n",
|
||||
(unsigned long long) m->finish_timestamp.realtime,
|
||||
(unsigned long long) m->finish_timestamp.monotonic);
|
||||
|
||||
fputc('\n', f);
|
||||
|
||||
HASHMAP_FOREACH_KEY(u, t, m->units, i) {
|
||||
if (u->meta.id != t)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user