5

Getting Around OSX Bash Fork Issues

 3 years ago
source link: https://fuzzyblog.io/blog/osx/2017/03/20/getting-around-osx-bash-fork-issues.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Getting Around OSX Bash Fork Issues

Mar 20, 2017

If you've ever seen this error under OSX:

-bash: fork: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable
-bash: cannot make pipe for command substitution: Too many open files

then you know that it usually signals "Oh crap - restart the box". If you're a Rails developer then you may be hitting this due to problems with the new Puma development server and the evented listener.

The solution is to change the listener in config/environments/development.rb from:

config.file_watcher = ActiveSupport::EventedFileUpdateChecker

config.file_watcher = ActiveSupport::FileUpdateChecker

You might also want to kill the listen gem as well (read the linked issue above).


Posted In: #osx #bash #rails #fork #mac


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK