View | Details | Raw Unified | Return to bug 197204 | Differences between
and this patch

Collapse All | Expand All

(-)lib/iobroker.c (-2 / +2 lines)
Lines 415-425 Link Here
415
			iobs->pfd[p].events = POLLIN;
415
			iobs->pfd[p].events = POLLIN;
416
			p++;
416
			p++;
417
		}
417
		}
418
		nfds = poll(iobs->pfd, iobs->num_fds, timeout);
418
		nfds = poll(iobs->pfd, p, timeout);
419
		if (nfds < 0) {
419
		if (nfds < 0) {
420
			return IOBROKER_ELIB;
420
			return IOBROKER_ELIB;
421
		}
421
		}
422
		for (i = 0; i < iobs->num_fds; i++) {
422
		for (i = 0; i < p; i++) {
423
			iobroker_fd *s;
423
			iobroker_fd *s;
424
			if ((iobs->pfd[i].revents & POLLIN) != POLLIN) {
424
			if ((iobs->pfd[i].revents & POLLIN) != POLLIN) {
425
				continue;
425
				continue;

Return to bug 197204