Git bash Error: Could not fork child process: There are no available terminals (-1)

后端 未结 28 2194
抹茶落季
抹茶落季 2020-12-12 12:17

I have had up to 8 git bash terminals running at the same time before.

Currently I have only 2 up.

I have not seen this error before and I am not understand

28条回答
  •  忘掉有多难
    2020-12-12 12:27

    finally figured out what was causing this.

    if we use code like this (explicitly or implicitly) i.e. in .bashrc file

    eval $(ssh-agent -s)
    ssh-add ~/.ssh/id_rsa
    

    it spawns a new process.

    if you don't exit it and just close the window, that process is still running. so each new bash opened just keeps adding new ones w/out disposing old ones.

    when done with a bash window, simply hit ctrl+d or type exit to kill the agent process, and you should not run out of forks.

提交回复
热议问题