temporary debug

This commit is contained in:
van Hauser 2016-02-08 08:20:22 +01:00
parent 325318039d
commit 095efa631f
2 changed files with 4 additions and 0 deletions

View file

@ -3677,6 +3677,8 @@ int main(int argc, char *argv[]) {
// this is the big function which starts the attacking children, feeds login/password pairs, etc.!
while (exit_condition == 0) {
memset(&fdreadheads, 0, sizeof(fdreadheads));
max_fd = 0;
FD_ZERO(&fdreadheads);
for (head_no = 0, max_fd = 1; head_no < hydra_options.max_use; head_no++) {
if (hydra_heads[head_no]->active > 0) {

View file

@ -18,7 +18,9 @@ int my_select(int fd, fd_set * fdread, fd_set * fdwrite, fd_set * fdex, long sec
fde2 = fdex;
stv.tv_sec = sec;
stv.tv_usec = usec;
if (debug) printf("before select\n");
ret_val = select(fd, fdr2, fdw2, fde2, &stv);
if (debug) printf("after select\n");
/* XXX select() sometimes returns errno=EINTR (signal found) */
} while (ret_val == -1 && errno == EINTR);