Re: [PATCH 4/8] Add read-cache--daemon for caching index and related stuff
On Tue, May 13, 2014 at 1:15 PM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 18 quoted lines
> diff --git a/Documentation/git-read-cache--daemon.txt b/Documentation/git-read-cache--daemon.txt
> new file mode 100644
> index 0000000..1b05be4
> --- /dev/null
> +++ b/Documentation/git-read-cache--daemon.txt
> @@ -0,0 +1,27 @@
> +git-read-cache--daemon(1)
> +=============
> +
> +NAME
> +----
> +git-daemon - A simple cache server for speeding up index file access
> +
> +SYNOPSIS
> +--------
> +[verse]
> +'git daemon' [--detach]
> +
Huh, "git daemon" can't be right...
Show 13 quoted lines
> diff --git a/Makefile b/Makefile
> index d0a2b4b..a44ab0b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1504,6 +1504,12 @@ ifdef HAVE_DEV_TTY
> BASIC_CFLAGS += -DHAVE_DEV_TTY
> endif
>
> +ifdef HAVE_SHM
> + BASIC_CFLAGS += -DHAVE_SHM
> + EXTLIBS += -lrt
> + PROGRAM_OBJS += read-cache--daemon.o
> +endif
I think this also needs to be protected against NO_UNIX_SOCKETS