mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33: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
|
@ -170,7 +170,7 @@ void service_vnc(char *ip, int sp, unsigned char options, char *miscptr, FILE *
|
|||
hydra_report(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid());
|
||||
hydra_child_exit(1);
|
||||
}
|
||||
usleep(300000);
|
||||
sleepn(300);
|
||||
buf = hydra_receive_line(sock);
|
||||
|
||||
if (buf == NULL || (strncmp(buf, "RFB", 3) != 0)) { /* check the first line */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue