From: Jono Spiro <jono@lostinrecursion.net>
To: git@vger.kernel.org
Subject: Git fsmonitor daemon processes spawn detached on macOS 26 Tahoe and never terminate
Date: Sat, 8 Nov 2025 13:55:20 -0800 [thread overview]
Message-ID: <CAMqCmsYb409G0CuL+4xZit4V4wqOzD8DtNBe9hmRquBm0Xuevg@mail.gmail.com> (raw)
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
1. Enabled git fsmonitor: git config --global core.fsmonitor true
2. Used git applications (Xcode, VS Code, GitX, terminal with Starship)
3. Performed normal git operations (open repository, stage files,
navigate directories)
4. Quit applications
What did you expect to happen? (Expected behavior)
fsmonitor--daemon processes should terminate when no longer needed, or
at minimum when
parent applications quit. Expected one daemon per active repository or
so. I am seeing dozens and some users of gitx (which I am a maintainer
on) are seeing thousands of orphaned git processes pile up after
upgrading to Tahoe.
What happened instead? (Actual behavior)
fsmonitor--daemon processes spawn detached (not as children of parent
application) and
never terminate. They accumulate indefinitely (dozens to hundreds over
time). All show:
git fsmonitor--daemon run --detach --ipc-threads=8
Processes must be manually killed: pkill -f fsmonitor-daemon
What's different between what you expected and what actually happened?
Daemons are spawning detached with no parent-child relationship. They
never receive
termination signals when parent applications quit, causing accumulation and git
index.lock files to remain locked, blocking further git operations.
Anything else you want to add:
- Only occurs on macOS 26.0+ (Tahoe) - not present on earlier macOS versions
- Affects ALL git builds: /usr/bin/git, Homebrew 2.51.2, Xcode Command
Line Tools
- Affects ALL git applications: Xcode, VS Code, GitX, Starship, any git client
- Side effects: system resource exhaustion, locked repositories
- Workaround: git config --global core.fsmonitor false
- Related issue: https://github.com/gitx/gitx/issues/485
- Apple Feedback: FB20956467
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.51.2
cpu: arm64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
libcurl: 8.7.1
zlib: 1.2.12
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
default-ref-format: files
default-hash: sha1
uname: Darwin 25.2.0 Darwin Kernel Version 25.2.0: Sat Nov 1 18:04:14
PDT 2025; root:xnu-12377.60.50.0.2~95/RELEASE_ARM64_T6000 arm64
compiler info: clang: 17.0.0 (clang-1700.3.19.1)
libc info: no libc information available
$SHELL (typically, interactive shell): /bin/zsh
[Enabled Hooks]
next reply other threads:[~2025-11-08 21:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-08 21:55 Jono Spiro [this message]
2025-11-14 7:16 ` Git fsmonitor daemon processes spawn detached on macOS 26 Tahoe and never terminate Koji Nakamaru
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMqCmsYb409G0CuL+4xZit4V4wqOzD8DtNBe9hmRquBm0Xuevg@mail.gmail.com \
--to=jono@lostinrecursion.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).