]> git.ozlabs.org Git - ppp.git/commitdiff
promptpass(): handle EINTR (bug report from Damian Gruszka)
authorFrank Cusack <fcusack@fcusack.com>
Fri, 25 Apr 2003 08:21:47 +0000 (08:21 +0000)
committerFrank Cusack <fcusack@fcusack.com>
Fri, 25 Apr 2003 08:21:47 +0000 (08:21 +0000)
pppd/plugins/passprompt.c

index 6c2c8284fd535c79384e0fb389f2198bfa54f665..768901718e884d6654265817ee9c3ced1e2118e7 100644 (file)
@@ -74,6 +74,8 @@ static int promptpass(char *user, char *passwd)
        if (red == 0)
            break;
        if (red < 0) {
+           if (errno == EINTR)
+               continue;
            error("Can't read secret from %s: %m", promptprog);
            readgood = -1;
            break;