summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 07:38:27 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 07:38:27 +0100
commit1bf2b4d18d27a0c00b9eeaac80376aaf94df74e6 (patch)
treedbdc269af5475c44aa0d515aafa92257a29ed857
parent73798a70be8d26907d31ecabdf76f941c56bae19 (diff)
downloaddirectfb-voodoo-1bf2b4d18d27a0c00b9eeaac80376aaf94df74e6.tar.gz
directfb-voodoo-1bf2b4d18d27a0c00b9eeaac80376aaf94df74e6.tar.bz2
directfb-voodoo-1bf2b4d18d27a0c00b9eeaac80376aaf94df74e6.zip
Also exit on ECONRESETHEADmaster
-rwxr-xr-xSource/DirectFB/lib/voodoo/unix/link_unix.c2
-rwxr-xr-xSource/DirectFB/lib/voodoo/unix/link_unix_1408limit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/DirectFB/lib/voodoo/unix/link_unix.c b/Source/DirectFB/lib/voodoo/unix/link_unix.c
index 65e3768..649f522 100755
--- a/Source/DirectFB/lib/voodoo/unix/link_unix.c
+++ b/Source/DirectFB/lib/voodoo/unix/link_unix.c
@@ -181,7 +181,7 @@ SendReceive( VoodooLink *link,
ret = send( l->fd[1], sends[i].ptr, sends[i].length, MSG_DONTWAIT );
if (ret < 0) {
D_PERROR( "Voodoo/Link: Failed to send() data!\n" );
- if (errno == EPIPE)
+ if (errno == EPIPE || errno == ECONNRESET)
exit(13);
return DR_IO;
}
diff --git a/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c b/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
index c05ae31..4f810f3 100755
--- a/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
+++ b/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
@@ -176,7 +176,7 @@ SendReceive( VoodooLink *link,
// break;
//}
D_PERROR( "Voodoo/Link: Failed to send() data!\n" );
- if (errno == EPIPE)
+ if (errno == EPIPE || errno == ECONNRESET)
exit(13);
return DR_FAILURE;
}