mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
Reset logging filter function when forking
To ensure child processes will log all error messages, reset the logging filter function when forking * src/util/util.c: Reset log filter in fork
This commit is contained in:
parent
ab07533e76
commit
88d04d170f
@ -384,6 +384,7 @@ int virFork(pid_t *pid) {
|
||||
get sent to stderr where they stand a fighting chance
|
||||
of being seen / logged */
|
||||
virSetErrorFunc(NULL, NULL);
|
||||
virSetErrorLogPriorityFunc(NULL);
|
||||
|
||||
/* Make sure any hook logging is sent to stderr, since child
|
||||
* process may close the logfile FDs */
|
||||
|
Loading…
x
Reference in New Issue
Block a user