SAF(NET) = STEPHEN A. FUQUA operating on the Web since 1995

Stephen is a web developer, Bahá'í, and interfaith activist in St. Paul, Minnesota. He likes to write about religion, social justice, sustainability, science, programming, &c.

December 18, 2003

Fork Problem with Cygwin

I've been enjoying the use of OpenSSH in Windows lately but ran into a small problem today: "fork: Permission denied".

OpenSSH runs in Windows via a port using Cygwin ("a Linux-like environment for Windows"). It has full SSH capabilities, including key management and server operation (yes, that means you can SSH into your Windows box!). Today I tried to load the ssh-agent at the command line (cmd.exe) and got an obnoxious response: fork: permission denied.

I found the following answer, which isn't cygwin or Windows specific (though the low limit might be):

Fork wont run if you run out of processes per that user.

I was running Outlook, Dreamweaver MX, Photoshop 3 (yes, v3!), and SETI@Home as well as the command line. I didn't need Photoshop at the moment, so I decided to close it and see what happens. Sure enough, the forking problem went away.

Now surely there is some way to avoid this problem in the future? There must be some means of increasing the number of processes available? I've certainly run Cygwin commands with more applications open in Windows before. Let me know if you have a solution; I'll update the post if I find anything.

deprecated

On safnet.com

Other sites managed or developed by S.A.F.

S.A.F. elsewhere on the web

  • LinkedIn
    LinkedIn can actually be useful when looking for prospective hires and business or organizational partners
  • GoodReads
    A fun and relatively-unknown social networking site geared towards one's book list
  • Live Journal
    Mirror of the blog at safnet.com, so that a few LJ friends can more easily read and comment there