]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: make use of log_set_open_when_needed() in nspawn too
authorLennart Poettering <lennart@poettering.net>
Tue, 22 May 2018 14:51:28 +0000 (16:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 May 2018 14:51:28 +0000 (16:51 +0200)
commit8ca082b49ac816457dc258c297a96b2f623b152e
tree7671dd1cf0050f0da28fde78272e406d4c3b47e8
parent8904ab86b0397e64846e4b7418584f7120626d9f
nspawn: make use of log_set_open_when_needed() in nspawn too

Let's make use of log_set_open_when_needed() in nspawn too, i.e. at the
point where we close logging because we are about to rearrange fds,
let's automatically reopen the logging fds when we need them, the same
way as we do that in the service manager. This makes things simpler and
more robust.
src/nspawn/nspawn.c