mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +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(f);
|
||||||
assert(fds);
|
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.realtime,
|
||||||
(unsigned long long) m->startup_timestamp.monotonic);
|
(unsigned long long) m->startup_timestamp.monotonic);
|
||||||
|
|
||||||
if (dual_timestamp_is_set(&m->finish_timestamp))
|
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.realtime,
|
||||||
(unsigned long long) m->finish_timestamp.monotonic);
|
(unsigned long long) m->finish_timestamp.monotonic);
|
||||||
|
|
||||||
|
fputc('\n', f);
|
||||||
|
|
||||||
HASHMAP_FOREACH_KEY(u, t, m->units, i) {
|
HASHMAP_FOREACH_KEY(u, t, m->units, i) {
|
||||||
if (u->meta.id != t)
|
if (u->meta.id != t)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user