From d76cd95a85233c60cfb0dd2f6b40bc9906c6fc36 Mon Sep 17 00:00:00 2001 From: jkratoch <> Date: Sun, 17 Jan 2010 22:36:35 +0000 Subject: [PATCH] Fixes for Fedora 13. --- src/orphanripper.c | 3 +++ 1 file changed, 3 insertions(+) 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)"); -- 1.8.3.1