summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 05:30:00 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 05:32:28 +0100
commit73798a70be8d26907d31ecabdf76f941c56bae19 (patch)
tree67daa1104fe8cc99a3958153382962314757eb9d /Source
parent2e0a0cee92bc4e79b1b01e4a508ad3c20db960d1 (diff)
downloaddirectfb-voodoo-73798a70be8d26907d31ecabdf76f941c56bae19.tar.gz
directfb-voodoo-73798a70be8d26907d31ecabdf76f941c56bae19.tar.bz2
directfb-voodoo-73798a70be8d26907d31ecabdf76f941c56bae19.zip
voodoo/unix: Exit on EPIPE in send
Diffstat (limited to 'Source')
-rwxr-xr-xSource/DirectFB/lib/voodoo/unix/link_unix.c2
-rwxr-xr-xSource/DirectFB/lib/voodoo/unix/link_unix_1408limit.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/DirectFB/lib/voodoo/unix/link_unix.c b/Source/DirectFB/lib/voodoo/unix/link_unix.c
index 1b6690c..65e3768 100755
--- a/Source/DirectFB/lib/voodoo/unix/link_unix.c
+++ b/Source/DirectFB/lib/voodoo/unix/link_unix.c
@@ -181,6 +181,8 @@ 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)
+ exit(13);
return DR_IO;
}
else {
diff --git a/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c b/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
index 790aa99..c05ae31 100755
--- a/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
+++ b/Source/DirectFB/lib/voodoo/unix/link_unix_1408limit.c
@@ -176,6 +176,8 @@ SendReceive( VoodooLink *link,
// break;
//}
D_PERROR( "Voodoo/Link: Failed to send() data!\n" );
+ if (errno == EPIPE)
+ exit(13);
return DR_FAILURE;
}
else {