chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::RunLock#acquire_win32_mutex
Since flock mechanism doesn't exist on windows we are using platform Mutex. We are creating a "Global" mutex here so that non-admin users can not DoS chef-client by creating the same named mutex we are using locally. Mutex name is case-sensitive contrary to other things in windows. "\" is the only invalid character.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/run_lock.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--RunLock-acquire_win32_mutex-for-pr
# Commit to gitgit add lib/chef/run_lock.rbgit commit -m "better docs for Chef::RunLock#acquire_win32_mutex"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--RunLock-acquire_win32_mutex-for-pr
hub pull-request
# Celebrate!