[sheepdog] [PATCH v2 3/3] sheepkeeper: a new cluster manager specialized for sheepdog

Liu Yuan namei.unix at gmail.com
Mon Nov 12 11:06:05 CET 2012


On 11/12/2012 04:58 PM, Hitoshi Mitake wrote:
> +		ret = xwrite(sk_comm_fd, &snd, sizeof(snd));
> +		if (ret != sizeof(snd)) {
> +			vprintf(SDOG_ERR, "xwrite() failed\n");
> +			exit(1);
> +		}

Actually you don't need check xwrite/xread and their friends. They will
handle the error case internally.

Thanks,
Yuan



More information about the sheepdog mailing list