Subject: Re: [PATCH 2/5] index-helper: new daemon for caching index and related stuff

From: David Turner <[email-masked]>
Date: Tue, 10 Jun 2014 14:44:19 -0400

On Tue, 2014-06-10 at 20:24 +0700, Nguyễn Thái Ngọc Duy wrote:

> +	loop(sb.buf, 600);
...
> +	if (st->st_mtime + 600 < time(NULL))

s/600/INDEX_HELPER_TIMEOUT/ or something.

> +		return;	  /* don't try to read from stale .pid file */
> +
> +	fd = open(git_path("read-cache--daemon.pid"), O_RDONLY);

should be index-helper.pid (actually, there are a few other instances of
this as well); maybe make it a constant.