From: Daniel P. Berrange Date: Mon, 24 Jan 2011 12:07:21 +0000 (+0000) Subject: Reset logging filter function when forking X-Git-Tag: v0.8.8~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d04d170f0de68612b246ab6e3c16cf9e945ca0;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/util/util.c b/src/util/util.c index 9ac76c6c2c..6161be6fba 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -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 */