diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2022-05-26 23:47:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-27 00:59:26 +0200 |
commit | 39664e93093bd9545ad4085523b122196c449508 (patch) | |
tree | abb30251e7a09aaaa74818a0b5980aeb260bbb99 /fsmonitor--daemon.h | |
parent | fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS (diff) | |
download | git-39664e93093bd9545ad4085523b122196c449508.tar.xz git-39664e93093bd9545ad4085523b122196c449508.zip |
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.h | 1 |
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; }; /* |