Re: [PATCH 20/23] fsm-listen-darwin: shutdown daemon if worktree root is moved/renamed
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Feb 24, 2022, 16:10 UTC
- Message-ID
- <87f9a63c-97d5-9aa7-c952-8d7498a5825c@github.com>
- In-Reply-To
- <496b3da35d0f9b8c68c6bc6c2bf2ca93ffe224b9.1644940774.git.gitgitgadget@gmail.com>
On 2/15/2022 10:59 AM, Jeff Hostetler via GitGitGadget wrote:
Show 5 quoted lines
> + if (ef_is_root_changed(event_flags[k])) {
> + /*
> + * The spelling of the pathname of the root directory
> + * has changed. This includes the name of the root
> + * directory itself of of any parent directory in thes/of of/or of/
Show 15 quoted lines
> + * path. > + * > + * (There may be other conditions that throw this, > + * but I couldn't find any information on it.) > + * > + * Force a shutdown now and avoid things getting > + * out of sync. The Unix domain socket is inside > + * the .git directory and a spelling change will make > + * it hard for clients to rendezvous with us. > + */ > + trace_printf_key(&trace_fsmonitor, > + "event: root changed"); > + goto force_shutdown; > + } > +
Thanks, -Stolee