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