projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always cap first print_crypt_status to less or equal 1 second.
[tfcrypt.git]
/
tfcrypt.c
diff --git
a/tfcrypt.c
b/tfcrypt.c
index b6bbe73de3cd3f3d38497fe2c8e11cd2697af735..df7cc29f130d485b3e11ff0007615171a573e7f4 100644
(file)
--- a/
tfcrypt.c
+++ b/
tfcrypt.c
@@
-1089,7
+1089,7
@@
_plain:
sigact.sa_handler = print_crypt_status;
sigaction(SIGUSR1, &sigact, NULL);
sigaction(SIGALRM, &sigact, NULL);
sigact.sa_handler = print_crypt_status;
sigaction(SIGUSR1, &sigact, NULL);
sigaction(SIGALRM, &sigact, NULL);
- if (status_timer) setup_next_alarm(status_timer);
+ if (status_timer) setup_next_alarm(status_timer
> 1000000 ? 1000000 : status_timer
);
sigact.sa_handler = change_status_width;
sigaction(SIGQUIT, &sigact, NULL);
sigact.sa_handler = change_status_timer;
sigact.sa_handler = change_status_width;
sigaction(SIGQUIT, &sigact, NULL);
sigact.sa_handler = change_status_timer;