diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -117,7 +117,7 @@ ssh_askpass(char *askpass, char *msg) | |||
117 | fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); | 117 | fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); |
118 | } | 118 | } |
119 | close(p[1]); | 119 | close(p[1]); |
120 | len = read(p[0], buf, sizeof buf); | 120 | len = atomicio(read, p[0], buf, sizeof buf); |
121 | close(p[0]); | 121 | close(p[0]); |
122 | while (waitpid(pid, &status, 0) < 0) | 122 | while (waitpid(pid, &status, 0) < 0) |
123 | if (errno != EINTR) | 123 | if (errno != EINTR) |