aboutsummaryrefslogtreecommitdiffstats
path: root/fsmonitor--daemon.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2022-05-26 21:47:07 +0000
committerJunio C Hamano <gitster@pobox.com>2022-05-26 15:59:26 -0700
commit39664e93093bd9545ad4085523b122196c449508 (patch)
treeabb30251e7a09aaaa74818a0b5980aeb260bbb99 /fsmonitor--daemon.h
parent8e8f4b814bab3f1499e50404e344f5b483c91f40 (diff)
downloadgit-39664e93093bd9545ad4085523b122196c449508.tar.gz
fsmonitor--daemon: cd out of worktree root
Teach the fsmonitor--daemon to CD outside of the worktree before starting up. The common Git startup mechanism causes the CWD of the daemon process to be in the root of the worktree. On Windows, this causes the daemon process to hold a locked handle on the CWD and prevents other processes from moving or deleting the worktree while the daemon is running. CD to HOME before entering main event loops. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor--daemon.h')
-rw-r--r--fsmonitor--daemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsmonitor--daemon.h b/fsmonitor--daemon.h
index bd09fffc17..223c2131b5 100644
--- a/fsmonitor--daemon.h
+++ b/fsmonitor--daemon.h
@@ -54,6 +54,7 @@ struct fsmonitor_daemon_state {
struct fsmonitor_daemon_backend_data *backend_data;
struct ipc_server_data *ipc_server_data;
+ struct strbuf path_ipc;
};
/*