$OpenBSD: patch-daemon_gdm-net_c,v 1.4 2007/05/18 17:20:40 jasper Exp $
--- daemon/gdm-net.c.orig	Sat Apr 21 13:29:27 2007
+++ daemon/gdm-net.c	Sat Apr 21 13:29:48 2007
@@ -451,7 +451,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"),
