# HG changeset patch # User Matt Johnston # Date 1390920264 -28800 # Node ID 6e6ae84d3dbaf56c327fffa2647e120ebfb53f56 # Parent 0459ff21e3206e96badb4d4e7b0b9d8dff4d2bc2 Fix check for EINTR diff -r 0459ff21e320 -r 6e6ae84d3dba gensignkey.c --- 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) {