[PATCH 01/10] downgrade an error to info message

Julien Cristau jcristau at debian.org
Tue Jan 5 10:18:15 PST 2010


From: Branden Robinson <branden at debian.org>

During normal xdm shutdown, killed local X servers
can be zombies; this is not an error.

Forward-ported by David Nusinow, Eugene Konev and Julien Cristau
---
 dm.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dm.c b/dm.c
index abe4453..e8eab0c 100644
--- a/dm.c
+++ b/dm.c
@@ -543,8 +543,17 @@ WaitForChild (void)
 			d->startTries, d->startAttempts);
 		if (d->displayType.origin == FromXDMCP ||
 		    d->status == zombie ||
-		    ++d->startTries >= d->startAttempts) {
-		    LogError ("Display %s is being disabled\n", d->name);
+		    ++d->startTries >= d->startAttempts)
+		{
+		    /*
+		     * During normal xdm shutdown, killed local X servers
+		     * can be zombies; this is not an error.
+		     */
+		    if (d->status == zombie &&
+			(d->startTries < d->startAttempts))
+			LogInfo ("display %s is being disabled\n", d->name);
+		    else
+			LogError ("display %s is being disabled\n", d->name);
 		    StopDisplay(d);
 		} else
 		    RestartDisplay (d, TRUE);
-- 
1.6.5.7



More information about the xorg-devel mailing list