]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: properly handle deserialization of unknown unit types (#6476)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 31 Jul 2017 06:05:35 +0000 (02:05 -0400)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Mon, 31 Jul 2017 06:05:35 +0000 (08:05 +0200)
commit0742986650b36b604613f9aaa1f6bd45b51c0e67
tree780ca1f54b04793074efe8814dab2ce40d4eec9f
parent01a45898fce8def67d51332bccc410eb1e8710e7
core: properly handle deserialization of unknown unit types (#6476)

We just abort startup, without printing any error. Make sure we always
print something, and when we cannot deserialize some unit, just ignore it and
continue.

Fixup for 4bc5d27b942afa83cc3d95debd2ad48d42ac07a8. Without this, we would hang
in daemon-reexec after upgrade.
src/core/manager.c
src/core/unit.c
src/core/unit.h