It does not hurt doing that. But it does not help anybody either.
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
---
read-cache--daemon.c | 1 +
read-cache.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/read-cache--daemon.c b/read-cache--daemon.c
index 4531978..bd6d84f 100644
--- a/read-cache--daemon.c
+++ b/read-cache--daemon.c
@@ -145,6 +145,7 @@ static void serve_cache(const char *socket_path, int detach)
if (fd < 0)
die_errno("unable to bind to '%s'", socket_path);
+ use_read_cache_daemon = -1;
refresh();
if (detach && daemonize(&daemonized))
die_errno("unable to detach");
diff --git a/read-cache.c b/read-cache.c
index 0e46523..4041485 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1470,7 +1470,7 @@ static void *try_shm(void *mmap, size_t *mmap_size)
struct stat st;
int fd;
- if (old_size <= 20 || !use_read_cache_daemon)
+ if (old_size <= 20 || use_read_cache_daemon <= 0)
return mmap;
strbuf_addf(&sb, "/git-index-%s.lock",
--
1.9.1.346.ga2b5940
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html