blob: 887a894e1f0d0af6fd77b5e545e5c4b2790a2b4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ae,v 1.5 2006/03/04 06:34:13 wiz Exp $
--- src/core/network.c.orig 2005-11-19 23:45:08.000000000 +0100
+++ src/core/network.c
@@ -373,7 +373,7 @@ int net_transmit(GIOChannel *handle, con
err = g_io_channel_write(handle, (char *) data, len, &ret);
if (err == G_IO_ERROR_AGAIN ||
- (err != 0 && (errno == EINTR || errno == EPIPE)))
+ (err != 0 && (errno == EINTR || errno == EPIPE || errno == ENOTCONN)))
return 0;
return err == 0 ? (int)ret : -1;
|