Git bash 错误:无法分叉子进程:没有可用的终端 (-1) [英] Git bash Error: Could not fork child process: There are no available terminals (-1)
问题描述
我之前有多达 8 个 git bash 终端同时运行.
I have had up to 8 git bash terminals running at the same time before.
目前我只有 2 个.
我以前从未见过这个错误,我不明白是什么导致了它.
I have not seen this error before and I am not understanding what is causing it.
任何帮助将不胜感激!
附图:
推荐答案
在 谷歌群组
我打开了一个 windows 命令提示符并运行了命令
I opened a windows command prompt and ran the command
$ tasklist
当这些窗口关闭并挂起可用的 git bash shell 窗口时,我在 git bash shell 中建立的 ssh 连接似乎没有关闭.
It looks as though the ssh connections I had made in my git bash shells weren't being closed when those windows were closed and were hanging the available git bash shell windows.
这可能是一个危险的解决方案,但我是从 Windows 命令提示符运行的
This may be a dangerous solution but from the windows command prompt I ran
$ taskkill /F /IM ssh.exe
在此之后,一切似乎都恢复了.这可能不是孤立进程的直接问题,但这至少对我有用.
Everything appears to be working again after this. It may not have directly been an issue of orphan processes, but this worked for at least for me.
附加说明:您还可以杀死其他进程,例如:
Additional note: you can also kill other processes, for example like:
$ taskkill /F /IM vim.exe
这篇关于Git bash 错误:无法分叉子进程:没有可用的终端 (-1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!