Switched usleep to nanosleep for posix complience

This commit is contained in:
Jack Reacher 2016-02-06 02:16:01 -05:00
parent 62be0a4aad
commit 554d66c768
35 changed files with 70 additions and 47 deletions

View file

@ -62,7 +62,7 @@ void service_redis_core(char *ip, int sp, unsigned char options, char *miscptr,
hydra_report(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid());
hydra_child_exit(1);
}
usleep(250);
usleepn(250);
next_run = 2;
break;
case 2: /* run the cracking function */