while (got < buflen && timeout >= 0) {
if (poll(&pollfd, 1, timeout*1000) <= 0)
DEBUG_RETURN("poll failed: %d (got %d)\n", errno, got);
while (got < buflen && timeout >= 0) {
if (poll(&pollfd, 1, timeout*1000) <= 0)
DEBUG_RETURN("poll failed: %d (got %d)\n", errno, got);