X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Forphanripper.c;h=b289477b31ca743c78b09dd8b561d56d8e6c303d;hb=ea9e4c327bfd50d4c64b590b1444ac6959156bc8;hp=4893e8f4961abeae4f07cb71a88e3a7e8ad67bfc;hpb=c825ee4453a37dac605a9a1bc16288f3a21ccf0e;p=nethome.git 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)");