Mercurial > dropbear
changeset 888:6e6ae84d3dba
Fix check for EINTR
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 28 Jan 2014 22:44:24 +0800 |
parents | 0459ff21e320 |
children | 3899ca4b65fd |
files | gensignkey.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gensignkey.c Thu Jan 23 22:29:04 2014 +0800 +++ b/gensignkey.c Tue Jan 28 22:44:24 2014 +0800 @@ -26,7 +26,7 @@ while (buf->pos != buf->len) { int len = write(fd, buf_getptr(buf, buf->len - buf->pos), buf->len - buf->pos); - if (errno == EINTR) { + if (len == -1 && errno == EINTR) { continue; } if (len <= 0) {