Skip to content

Instantly share code, notes, and snippets.

@indirect indirect/child.rb
Created Jun 14, 2013

What would you like to do?
ruby child process with non-buffered output
# give the child process a terminal so output isn't buffered
@master, slave =
in_clean_environment do
@pid = ::Process.spawn(
%Q(bash -c "#{config.command}"),
:in => slave,
:out => slave,
:err => slave,
:chdir => config.dir,
:pgroup => true

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.