childprocess

https://github.com/enkessler/childprocess

Ruby

Cross-platform Ruby library for managing child processes.

ChildProcess.close_on_exec

By default, a child process will inherit open file descriptors from the
parent process. This helper provides a cross-platform way of making sure
that doesn't happen for the given file/io.

Source | Google | Stack overflow

Edit

git clone [email protected]:enkessler/childprocess.git

cd childprocess

open lib/childprocess.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ChildProcess-close_on_exec-for-pr


# Commit to git

git add lib/childprocess.rbgit commit -m "better docs for ChildProcess.close_on_exec"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ChildProcess-close_on_exec-for-pr

hub pull-request


# Celebrate!