r4161 - trunk/varnish-cache/lib/libvarnish

Dag-Erling Smørgrav des at des.no
Tue Aug 4 19:07:25 CEST 2009


sky at projects.linpro.no writes:
>  void
>  TCP_blocking(int sock)
>  {
>  	int i;
>  
> +#ifdef __sun
> +	i = fcntl (sock, F_GETFL,0);
> +	fcntl(sock, F_SETFL, i & ~O_NONBLOCK);
> +#else
>  	i = 0;
>  	AZ(ioctl(sock, FIONBIO, &i));
> +#endif
>  }

Missing error check for the fcntl case.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the varnish-commit mailing list