{"thread":{"id":"60707","subject":"Bug: Git spawns subprocesses on windows","startedAt":"2024-01-09T15:34:20Z","lastAt":"2024-01-10T09:29:54Z","messageCount":3,"participants":["Domen Golob","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"486439","messageId":"CAF6dN-oEy-svp+6Bw_NAeOMrWc61ObcZ4Q2huVj9PPK1EQHquw@mail.gmail.com","threadId":"60707","inReplyTo":null,"subject":"Bug: Git spawns subprocesses on windows","fromName":"Domen Golob","fromEmail":"domen.golob.px@gmail.com","sentAt":"2024-01-09T15:33:43Z","receivedAt":"2024-01-09T15:34:20Z","isPatch":false,"sender":{"key":"domen.golob.px@gmail.com","avatar":null},"body":"Hello,\nthe problem is exactly the same as what was reported here on stackoverflow:\nc# - Git for windows seems to create sub-processes that never die -\nStack Overflow\nhttps://stackoverflow.com/questions/69579065/git-for-windows-seems-to-create-sub-processes-that-never-die\n\nAdditionally I have found out that:\n- a Git for Windows subprocess is created for each repository and\nevery time a git command is issued this process grows in size and it\nnever dies.\n- you cannot delete the .git folder from the terminal, but it works\nvia file explorer\n- deleting the .git folder kills the Git for windows process\n- creating changes in several repos creates multiple processes, and\nsometimes the process is created as a subprocess\n\nHere are some screenshots:\nhttps://photos.app.goo.gl/oinHVY1NAzHChU6CA\n\nHope this helps,\n\nThanks for making git awesome :)\n\nBest regards,\nDomen\n"},{"id":"486478","messageId":"ZZ3PB9mq8GTpGITC@tapette.crustytoothpaste.net","threadId":"60707","inReplyTo":"CAF6dN-oEy-svp+6Bw_NAeOMrWc61ObcZ4Q2huVj9PPK1EQHquw@mail.gmail.com","subject":"Re: Bug: Git spawns subprocesses on windows","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2024-01-09T22:56:07Z","receivedAt":"2024-01-09T22:56:16Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2024-01-09 at 15:33:43, Domen Golob wrote:\n> Hello,\n> the problem is exactly the same as what was reported here on stackoverflow:\n> c# - Git for windows seems to create sub-processes that never die -\n> Stack Overflow\n> https://stackoverflow.com/questions/69579065/git-for-windows-seems-to-create-sub-processes-that-never-die\n> \n> Additionally I have found out that:\n> - a Git for Windows subprocess is created for each repository and\n> every time a git command is issued this process grows in size and it\n> never dies.\n> - you cannot delete the .git folder from the terminal, but it works\n> via file explorer\n> - deleting the .git folder kills the Git for windows process\n> - creating changes in several repos creates multiple processes, and\n> sometimes the process is created as a subprocess\n\nYou probably want to contact Git for Windows at\nhttps://github.com/git-for-windows/git.  The reason I suggest that is\nthat this is usually not a behaviour we see on Unix, and seems to be\nWindows-specific.\n\nI don't know if it's possible to see command-line arguments of processes\non Windows like it is with `ps` on Unix, but including that information\nif possible will be very useful to the maintainers.  Without knowing\nthat information, it's very unlikely that anyone will be able to help\nyou since we don't know what's going on.\n\nThere are some possibilities of what's going on here:\n\n* git gc is running.\n* git maintenance or the fsmonitor is configured and is running.\n* You have a non-default antivirus or monitoring software that causes\n  processes to hang or not complete, so one of Git's subprocesses can't\n  exit.  If you're using such software, we usually recommend completely\n  removing it completely (disabling it is usually not sufficient),\n  rebooting, and testing again to make sure it's not the problem.\n* You have some other process which is running which spawns Git commands\n  (editors, content indexers, etc.).\n* We actually have a bug and some process is not waited for correctly,\n  and zombie processes manifest differently on Windows than on Unix.\n* Something else I haven't considered.\n\nHowever, as I said, you'll probably want to contact the Git for Windows\nfolks through their issue tracker.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"},{"id":"486513","messageId":"CAF6dN-oynGyZ5zE7Tif8K_BcUcox5PJF9UFCZZapJfpS+F8nEA@mail.gmail.com","threadId":"60707","inReplyTo":"ZZ3PB9mq8GTpGITC@tapette.crustytoothpaste.net","subject":"Re: Bug: Git spawns subprocesses on windows","fromName":"Domen Golob","fromEmail":"domen.golob.px@gmail.com","sentAt":"2024-01-10T09:29:17Z","receivedAt":"2024-01-10T09:29:54Z","isPatch":false,"sender":{"key":"domen.golob.px@gmail.com","avatar":null},"body":"Thanks for your answer, indeed this does not happen on Unix, and I\ndon't have this issue there.\nWill report the bug to the windows team.\n\nThanks.\n\nOn Tue, 9 Jan 2024 at 23:56, brian m. carlson\n<sandals@crustytoothpaste.net> wrote:\n>\n> On 2024-01-09 at 15:33:43, Domen Golob wrote:\n> > Hello,\n> > the problem is exactly the same as what was reported here on stackoverflow:\n> > c# - Git for windows seems to create sub-processes that never die -\n> > Stack Overflow\n> > https://stackoverflow.com/questions/69579065/git-for-windows-seems-to-create-sub-processes-that-never-die\n> >\n> > Additionally I have found out that:\n> > - a Git for Windows subprocess is created for each repository and\n> > every time a git command is issued this process grows in size and it\n> > never dies.\n> > - you cannot delete the .git folder from the terminal, but it works\n> > via file explorer\n> > - deleting the .git folder kills the Git for windows process\n> > - creating changes in several repos creates multiple processes, and\n> > sometimes the process is created as a subprocess\n>\n> You probably want to contact Git for Windows at\n> https://github.com/git-for-windows/git.  The reason I suggest that is\n> that this is usually not a behaviour we see on Unix, and seems to be\n> Windows-specific.\n>\n> I don't know if it's possible to see command-line arguments of processes\n> on Windows like it is with `ps` on Unix, but including that information\n> if possible will be very useful to the maintainers.  Without knowing\n> that information, it's very unlikely that anyone will be able to help\n> you since we don't know what's going on.\n>\n> There are some possibilities of what's going on here:\n>\n> * git gc is running.\n> * git maintenance or the fsmonitor is configured and is running.\n> * You have a non-default antivirus or monitoring software that causes\n>   processes to hang or not complete, so one of Git's subprocesses can't\n>   exit.  If you're using such software, we usually recommend completely\n>   removing it completely (disabling it is usually not sufficient),\n>   rebooting, and testing again to make sure it's not the problem.\n> * You have some other process which is running which spawns Git commands\n>   (editors, content indexers, etc.).\n> * We actually have a bug and some process is not waited for correctly,\n>   and zombie processes manifest differently on Windows than on Unix.\n> * Something else I haven't considered.\n>\n> However, as I said, you'll probably want to contact the Git for Windows\n> folks through their issue tracker.\n> --\n> brian m. carlson (he/him or they/them)\n> Toronto, Ontario, CA\n"}]}