forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-287928: Use logger for upstream QEMU logging
QEMU's stdout and stderr are connected to a forkexecd child proccess which is responsible for logging to syslog. This forkexecd child does not remain running when using qemu-trad since it logs to syslog via its privileged half. Since the forkexecd child is fairly heavyweight, replace it with "logger" which does the same thing but uses substantially less memory. Unfortunately, to have the logs prefixed with QEMU's pid implies starting QEMU before logger which requires a fair amount of code refactoring in the wrapper so that QEMU is started as a subprocess and logger is exec()ed rather than exec()ing QEMU directly. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
- Loading branch information
1 parent
371d825
commit 2e801c4
Showing
1 changed file
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters