From f600f1c68e1de3f755e929b045d08a656d57b6ce Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Dec 2005 20:14:55 +0000 Subject: r12151: match the select mode of the standard events system and the liboop system, and report errors as read events metze (This used to be commit 5bbd54e96c75af765f827238d6c80101613ae64f) --- source4/gtk/common/gtk_events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/gtk') diff --git a/source4/gtk/common/gtk_events.c b/source4/gtk/common/gtk_events.c index 7f1230b13f..9a0af5fdeb 100644 --- a/source4/gtk/common/gtk_events.c +++ b/source4/gtk/common/gtk_events.c @@ -145,7 +145,7 @@ static struct fd_event *gtk_event_add_fd(struct event_context *ev, TALLOC_CTX *m } if (fde->flags & EVENT_FD_READ) - condition |= G_IO_IN; + condition |= (G_IO_IN | G_IO_ERR | G_IO_HUP); if (fde->flags & EVENT_FD_WRITE) condition |= G_IO_OUT; @@ -187,7 +187,7 @@ static void gtk_event_set_fd_flags(struct fd_event *fde, uint16_t flags) if (fde->flags == flags) return; if (flags & EVENT_FD_READ) - condition |= G_IO_IN; + condition |= (G_IO_IN | G_IO_ERR | G_IO_HUP); if (flags & EVENT_FD_WRITE) condition |= G_IO_OUT; -- cgit