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

2014-06-10 Thread David Turner
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--

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

2014-06-10 Thread Nguyễn Thái Ngọc Duy
The shared memory's name folows the template "git--" where is the trailing SHA-1 of the index file. is "index" for caching index files. If such shared memory exists, it contains the same index content as on disk. The content is already validated by the daemon and git won't validate it again. Note