diff options
Diffstat (limited to 'gensignkey.c')
-rw-r--r-- | gensignkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gensignkey.c b/gensignkey.c index cb66fff..338bbef 100644 --- a/gensignkey.c +++ b/gensignkey.c @@ -26,7 +26,7 @@ static int buf_writefile(buffer * buf, const char * filename) { 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) { |