summaryrefslogtreecommitdiff
path: root/source4/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'source4/gtk')
-rw-r--r--source4/gtk/common/gtk_events.c4
1 files changed, 2 insertions, 2 deletions
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;