summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-25 12:52:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-25 12:52:38 +0000
commit96020e699926d292d27dc6fd986e8bb688cbe31e (patch)
tree8af6f44f011bba933984be5cb0cd64f98cbb5eb3 /src
parent48b409ea14ff2ab56499f8f7e862e40b84c0978c (diff)
downloadirssi-96020e699926d292d27dc6fd986e8bb688cbe31e.zip
With some systems Irssi didn't notice if connect() failed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@232 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/server.c2
-rw-r--r--src/irc/dcc/dcc-chat.c2
-rw-r--r--src/irc/dcc/dcc-files.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/server.c b/src/core/server.c
index 07da183e..920b0b9a 100644
--- a/src/core/server.c
+++ b/src/core/server.c
@@ -155,7 +155,7 @@ static void server_connect_callback_readpipe(SERVER_REC *server, int handle)
return;
}
- server->connect_tag = g_input_add(server->handle, G_INPUT_WRITE|G_INPUT_READ,
+ server->connect_tag = g_input_add(server->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
(GInputFunction) server_connect_callback_init, server);
signal_emit("server connecting", 2, server, &iprec.ip);
}
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 6a38e93c..699af0d4 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -290,7 +290,7 @@ static void cmd_dcc_chat(gchar *data, IRC_SERVER_REC *server)
source_host_ok ? source_host_ip : NULL);
if (dcc->handle != -1)
{
- dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
+ dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
(GInputFunction) dcc_chat_connect, dcc);
}
else
diff --git a/src/irc/dcc/dcc-files.c b/src/irc/dcc/dcc-files.c
index 5acd35c9..61989ce1 100644
--- a/src/irc/dcc/dcc-files.c
+++ b/src/irc/dcc/dcc-files.c
@@ -178,7 +178,7 @@ static void cmd_dcc_get(gchar *data)
source_host_ok ? source_host_ip : NULL);
if (dcc->handle != -1)
{
- dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
+ dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
(GInputFunction) dcc_get_connect, dcc);
}
else
@@ -227,7 +227,7 @@ static void dcc_resume_setup(DCC_REC *dcc, gint port)
source_host_ok ? source_host_ip : NULL);
if (dcc->handle != -1)
{
- dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE,
+ dcc->tagread = g_input_add(dcc->handle, G_INPUT_WRITE|G_INPUT_READ|G_INPUT_EXCEPTION,
(GInputFunction) dcc_get_connect, dcc);
}
else