[sheepdog] [PATCH v3] sheep: implement a correct mutex of a base directory

MORITA Kazutaka morita.kazutaka at gmail.com
Mon Apr 29 02:10:20 CEST 2013


>  
> -static int lock_base_dir(const char *d)
> +int lock_base_dir(const char *d)
>  {
>  #define LOCK_PATH "/lock"
>  	char *lock_path;
> @@ -224,7 +224,7 @@ int init_base_path(const char *d)
>  		return -1;
>  	}
>  
> -	return lock_base_dir(d);
> +	return 0;
>  }

This doesn't create a lock file when sheep runs in the foreground.

Thanks,

Kazutaka



More information about the sheepdog mailing list