Skip to content

Instantly share code, notes, and snippets.

@jgajek
Created March 28, 2016 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgajek/715260be4be85323d780 to your computer and use it in GitHub Desktop.
Save jgajek/715260be4be85323d780 to your computer and use it in GitHub Desktop.
*thisresplenp = recvfrom(pfd[0].fd, (char*)*thisansp,
*thisanssizp, 0,
(struct sockaddr *)&from, &fromlen);
if (__glibc_unlikely (*thisresplenp <= 0)) {
if (errno == EINTR || errno == EAGAIN) {
need_recompute = 1;
goto wait;
}
Perror(statp, stderr, "recvfrom", errno);
goto err_out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment