X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_random.c;h=ccafe5c28dc6e56da5209f7e6790c0f154af56bd;hb=44bb43b90d7aad1878b20b6c9df848b998820374;hp=360b6584e8c2e0ed273235b519aa89d9b6f2e1ad;hpb=1b12ee27233bd358a40406b5a7799230647c5ab1;p=tfcrypt.git diff --git a/tfc_random.c b/tfc_random.c index 360b658..ccafe5c 100644 --- a/tfc_random.c +++ b/tfc_random.c @@ -88,6 +88,8 @@ void gen_write_bytes(const char *foutname, tfc_fsize offset, tfc_fsize nrbytes) size_t lblock, lio, lrem; tfc_byte *pblk; + xexit_no_nl = YES; + for (x = 1; x < NSIG; x++) signal(x, SIG_IGN); memset(&sigact, 0, sizeof(sigact)); sigact.sa_flags = SA_RESTART; @@ -138,7 +140,7 @@ void gen_write_bytes(const char *foutname, tfc_fsize offset, tfc_fsize nrbytes) if (ctr_mode == TFC_MODE_PLAIN) memset(srcblk, 0, sizeof(srcblk)); if (verbose) tfc_nfsay(stderr, "%s: writing %lld bytes to %s ... ", - progname, nrbytes, foutname); + tfc_format_pid(progname), nrbytes, foutname); errno = 0; do_stop = NO; @@ -179,7 +181,10 @@ _wagain: lio = xwrite(fd, pblk, lrem); } if (verbose) tfc_esay("done!"); - if (verbose || status_timer) print_crypt_status(0); + if (verbose || status_timer) { + print_crypt_status(0); + tfc_esay("\n"); + } xclose(fd); xexit(0);