svn commit: samba r19101 - in branches/SAMBA_3_0/source/lib: .
derrell at samba.org
derrell at samba.org
Thu Oct 5 12:51:42 GMT 2006
metze at samba.org writes:
> /*******************************************************************
> +A write wrapper that will deal with EINTR.
Copy/paste error? s/write/sys_recv/
> +********************************************************************/
> +
> +ssize_t sys_recv(int fd, void *buf, size_t count, int flags)
> +{
> + ssize_t ret;
> +
> + do {
> + ret = recv(fd, buf, count, flags);
> + } while (ret == -1 && errno == EINTR);
> + return ret;
> +}
More information about the samba-technical
mailing list