mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 05:13:51 -07:00
Switched usleep to nanosleep for posix complience
This commit is contained in:
parent
62be0a4aad
commit
554d66c768
35 changed files with 70 additions and 47 deletions
2
hydra.c
2
hydra.c
|
@ -3876,7 +3876,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
usleep(USLEEP_LOOP);
|
||||
usleepn(USLEEP_LOOP);
|
||||
(void) wait3(NULL, WNOHANG, NULL);
|
||||
// write restore file and report status
|
||||
if (process_restore == 1 && time(NULL) - elapsed_restore > 299) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue