diff options
Diffstat (limited to 'digest.c')
-rw-r--r-- | digest.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ enum mog_digest_next mog_digest_read(struct mog_digest *digest, int fd) if (r > 0) { /* most likely */ gc_hash_write(digest->ctx, r, buf); + if (mog_thr_prepare_quit()) + return MOG_DIGEST_YIELD; } else if (r == 0) { /* wait for user to call mog_digest_hex() */ return MOG_DIGEST_EOF; |