From a36be2a103e95b04d5b348c83b41dc8c06439990 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 4 Apr 2007 07:30:14 +0000 Subject: Fix missing G_IO_NVAL handling --- daemon/echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/echo.c') diff --git a/daemon/echo.c b/daemon/echo.c index 41c67559..1fe23727 100644 --- a/daemon/echo.c +++ b/daemon/echo.c @@ -55,7 +55,7 @@ static gboolean session_event(GIOChannel *chan, GIOCondition cond, gpointer data gsize len, written; GIOError err; - if (cond & (G_IO_HUP | G_IO_ERR)) + if (cond & (G_IO_HUP | G_IO_ERR | G_IO_NVAL)) return FALSE; err = g_io_channel_read(chan, (gchar *) buf, sizeof(buf), &len); @@ -104,7 +104,7 @@ static void authorization_callback(DBusPendingCall *call, void *data) dbus_error_free(&err); } else { info("Accepting incoming connection"); - g_io_add_watch(auth->io, G_IO_IN | G_IO_HUP | G_IO_ERR, + g_io_add_watch(auth->io, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL, session_event, NULL); } -- cgit