git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug: Git spawns subprocesses on windows

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 9, 2024, 22:56 UTC
Message-ID
<ZZ3PB9mq8GTpGITC@tapette.crustytoothpaste.net>
In-Reply-To
<CAF6dN-oEy-svp+6Bw_NAeOMrWc61ObcZ4Q2huVj9PPK1EQHquw@mail.gmail.com>
On 2024-01-09 at 15:33:43, Domen Golob wrote:
Show 15 quoted lines
> Hello,
> the problem is exactly the same as what was reported here on stackoverflow:
> c# - Git for windows seems to create sub-processes that never die -
> Stack Overflow
> https://stackoverflow.com/questions/69579065/git-for-windows-seems-to-create-sub-processes-that-never-die
> 
> Additionally I have found out that:
> - a Git for Windows subprocess is created for each repository and
> every time a git command is issued this process grows in size and it
> never dies.
> - you cannot delete the .git folder from the terminal, but it works
> via file explorer
> - deleting the .git folder kills the Git for windows process
> - creating changes in several repos creates multiple processes, and
> sometimes the process is created as a subprocess

You probably want to contact Git for Windows at https://github.com/git-for-windows/git. The reason I suggest that is that this is usually not a behaviour we see on Unix, and seems to be Windows-specific.

I don't know if it's possible to see command-line arguments of processes on Windows like it is with `ps` on Unix, but including that information if possible will be very useful to the maintainers. Without knowing that information, it's very unlikely that anyone will be able to help you since we don't know what's going on.

There are some possibilities of what's going on here:
* git gc is running.
* git maintenance or the fsmonitor is configured and is running.
* You have a non-default antivirus or monitoring software that causes
  processes to hang or not complete, so one of Git's subprocesses can't
  exit.  If you're using such software, we usually recommend completely
  removing it completely (disabling it is usually not sufficient),
  rebooting, and testing again to make sure it's not the problem.
* You have some other process which is running which spawns Git commands
  (editors, content indexers, etc.).
* We actually have a bug and some process is not waited for correctly,
  and zombie processes manifest differently on Windows than on Unix.
* Something else I haven't considered.

However, as I said, you'll probably want to contact the Git for Windows folks through their issue tracker.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Domen GolobNext: Domen Golob
Message 2 of 3 in “Bug: Git spawns subprocesses on windows”
  1. Domen GolobJan 9, 2024
  2. brian m. carlsonJan 9, 2024
  3. Domen GolobJan 10, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.