[sheepdog] [PATCH 3/3] sheep: let config use atomic_create_and_write()
Hitoshi Mitake
mitake.hitoshi at gmail.com
Wed Apr 17 08:20:41 CEST 2013
At Wed, 17 Apr 2013 13:56:59 +0800,
Liu Yuan wrote:
>
> 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.
OK, I'll remove the access(2) in the v2.
Thanks,
Hitoshi
More information about the sheepdog
mailing list