From 88d04d170f0de68612b246ab6e3c16cf9e945ca0 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 24 Jan 2011 12:07:21 +0000 Subject: [PATCH] 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 --- src/util/util.c | 1 + 1 file changed, 1 insertion(+) 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 */