问题
When running "git status" or even "ls" from an apache process, I will frequently get no standard output or error, and an exit status code of -6. Other times, it just works. Any ideas why this is occurring or what it means?
回答1:
If you are on a network with a lot of people, you may be running out of available concurrent connections. This assumes you are on Linux when you talk about your remote. The default of 10 concurrent secure collections is not enough if you have lots of simultaneous connections via ssh.
This is explained by git running on your local machine and then needing to access multiple files on the remote to get the picture of what is in the index and the current commit's tree.
来源:https://stackoverflow.com/questions/8948598/subprocesses-from-apache-returning-exit-code-6-with-not-stdout-or-stderr