X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Futils.c;h=23189d0ad105bd49f9c00c274ab6340cfd6ffb09;hp=3602aa61674ab23c538d6e3cebdea511cde42a6e;hb=c319558b8cacad7d27f04c7d612e44b67f273434;hpb=0bc11fba4e57d6fabfdce20bef07d4dd4d6ef38c;ds=sidebyside diff --git a/pppd/utils.c b/pppd/utils.c index 3602aa6..23189d0 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -835,7 +835,7 @@ complete_read(int fd, void *buf, size_t count) for (done = 0; done < count; ) { nb = read(fd, ptr, count - done); if (nb < 0) { - if (errno == EINTR) + if (errno == EINTR && !got_sigterm) continue; return -1; }