$OpenBSD: patch-daemon_gdm-net_c,v 1.5 2007/11/27 20:26:13 jasper Exp $
--- daemon/gdm-net.c.orig	Mon Oct 15 23:43:04 2007
+++ daemon/gdm-net.c	Sat Oct 27 17:09:35 2007
@@ -456,7 +456,7 @@ gdm_connection_open_fifo (const char *fifo, mode_t mod
 		return NULL;
 	}
 
-	fd = open (fifo, O_RDWR); /* Open with write to avoid EOF */
+	fd = open (fifo, O_NONBLOCK|O_RDONLY);
 
 	if G_UNLIKELY (fd < 0) {
 		gdm_error (_("%s: Could not open FIFO"),
