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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]