--- ./slave.c	2006/05/02 23:46:17	1.1
+++ ./slave.c	2006/05/03 01:23:19
@@ -4762,7 +4762,9 @@ gdm_slave_handle_usr2_message (void)
 	char **vec;
 	int i;
 
+	gdm_debug ("%s on display %s: about to read from slave fd", __func__, d->name);
 	VE_IGNORE_EINTR (count = read (d->slave_notify_fd, buf, sizeof (buf) -1));
+	gdm_debug ("%s on display %s: read %d bytes from slave fd", __func__, d->name, count);
 	if (count <= 0) {
 		return;
 	}
@@ -4773,6 +4775,11 @@ gdm_slave_handle_usr2_message (void)
 	if (vec == NULL) {
 		return;
 	}
+	gdm_debug ("%s on display %s: message is:", __func__, d->name);
+	for (i = 0; vec[i] != NULL; i++) {
+		char *s = vec[i];
+		gdm_debug ("%s on display %s: <line %d>: %s", __func__, d->name, i, s);
+	gdm_debug ("%s on display %s: end of message", __func__, d->name);
 
 	for (i = 0; vec[i] != NULL; i++) {
 		char *s = vec[i];
