[sheepdog] [PATCH 3/3] sheep: let config use atomic_create_and_write()

Liu Yuan namei.unix at gmail.com
Wed Apr 17 07:56:59 CEST 2013


On 04/17/2013 01:45 PM, Hitoshi Mitake wrote:
> +	if (!access(tmp_config_path, F_OK))
> +		return;
> +
> +	sd_iprintf("remove temporal config file");
> +	unlink(tmp_config_path);

No need to access(tmp_config_path), just call unlink(tmp_config_path) is
sufficient.

Thanks,
Yuan



More information about the sheepdog mailing list