]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: process: Rework reading errors from the log file
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 13:28:57 +0000 (15:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 9 Sep 2022 14:11:06 +0000 (16:11 +0200)
commit9a3110862f9647407eff5a5bf5ff336726a3a3fa
tree157ac656fab4d57eec59d210d8371ef5701f86a8
parent68d5617c3c4a8112c67da0f61335a3d958e91a54
lxc: process: Rework reading errors from the log file

Introduce 'virLXCProcessReportStartupLogError' which simplifies the
error handling on startup of the LXC process when reading of the error
log is needed.

This function has unusual return value semantics but it helps to make
the callers simpler.

This patch also removes 2 1k stack'd buffers from virLXCProcessStart.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_process.c