Make digests update more safe.
Restart syscalls for SIGALARM.
Fix newlines display for progress bar.