X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=main.c;h=2fc3733faaf9a4e5205efee68915b282a221ffa5;hp=bed0edd4167c2e25a2e5465cb798bb3c741d81d4;hb=8f689d09814add5e1b22577cc104e2eb5e16c66f;hpb=26486b46eada232ef807f3d969ffdec33d5e4858 diff --git a/main.c b/main.c index bed0edd..2fc3733 100644 --- a/main.c +++ b/main.c @@ -90,7 +90,7 @@ retry: maxlen = LOG_BUF_SIZE - proc->log_buf_ofs; read_len = len = read(fd->fd, buf, maxlen); if (len < 0) { - if (errno == EAGAIN) + if (errno == EINTR) goto retry; goto out;