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;
continue;
}
- if (status_timer) setup_next_alarm(status_timer);
+ if (status_timer) setup_next_alarm(status_timer > 1000000 ? 1000000 : status_timer);
if (skeinfd(hash, bits, mackey_opt ? mackey : NULL, fd, iseek, maxlen) != YES) {
xerror(YES, NO, YES, "%s", fname);
exitcode = 1;
continue;
}
-_dohash: if (status_timer) setup_next_alarm(status_timer);
+_dohash: if (status_timer) setup_next_alarm(status_timer > 1000000 ? 1000000 : status_timer);
if (skeinfd(hash, bits, mackey_opt ? mackey : NULL, fd, iseek, maxlen) != YES) {
xerror(YES, NO, YES, "%s", fargv[x]);
exitcode = 1;
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;