From 559a9a2ef363a2d9e81581f5846c59b0209c3575 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 16 Feb 2007 20:18:37 +0000 Subject: Add missing flags to g_io_add_watch calls --- transfer/process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'transfer/process.c') diff --git a/transfer/process.c b/transfer/process.c index 39145f42..15bac918 100644 --- a/transfer/process.c +++ b/transfer/process.c @@ -74,7 +74,8 @@ int create_reader(uid_t uid, const char *pathname, io = g_io_channel_unix_new(pfd[0]); g_io_channel_set_close_on_unref(io, TRUE); - g_io_add_watch(io, G_IO_IN, func, user_data); + g_io_add_watch(io, G_IO_IN | G_IO_ERR | G_IO_HUP, func, + user_data); g_io_channel_unref(io); -- cgit