From: jkratoch <> Date: Sun, 17 Jan 2010 22:36:35 +0000 (+0000) Subject: Fixes for Fedora 13. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=d76cd95a85233c60cfb0dd2f6b40bc9906c6fc36;hp=fb0f0031d39c7d58684753118a05afaaa1a44138 Fixes for Fedora 13. --- diff --git a/src/orphanripper.c b/src/orphanripper.c index 4893e8f..b289477 100644 --- a/src/orphanripper.c +++ b/src/orphanripper.c @@ -41,6 +41,7 @@ #include #include #include +#include #define LENGTH(x) (sizeof (x) / sizeof (*(x))) @@ -87,6 +88,8 @@ static int read_out (int amaster) /* Weird but at least after POLLHUP we get EIO instead of just EOF. */ if (buf_got == -1 && errno == EIO) return 0; + if (buf_got == -1 && errno == EAGAIN) + return 0; if (buf_got < 0) { perror ("read (amaster)");