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

@ -432,7 +432,7 @@ void service_pop3(char *ip, int sp, unsigned char options, char *miscptr, FILE *
if (sock >= 0)
sock = hydra_disconnect(sock);
// usleep(300000);
// sleepn(300);
if ((options & OPTION_SSL) == 0) {
sock = hydra_connect_tcp(ip, port);
} else {
@ -519,7 +519,7 @@ int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FI
if (sock >= 0)
sock = hydra_disconnect(sock);
// usleep(300000);
// sleepn(300);
if ((options & OPTION_SSL) == 0) {
if (port != 0)
myport = port;