diff --git a/lib/foreman/engine.rb b/lib/foreman/engine.rb index 6fb5ba5..7fb6690 100644 --- a/lib/foreman/engine.rb +++ b/lib/foreman/engine.rb @@ -58,7 +58,7 @@ private ###################################################################### concurrency = Foreman::Utils.parse_concurrency(@options[:concurrency]) procfile.entries.each do |entry| - reader, writer = IO.pipe("BINARY") + reader, writer = (IO.method(:pipe).arity == 0 ? IO.pipe : IO.pipe("BINARY")) entry.spawn(concurrency[entry.name], writer, @directory, @environment, port_for(entry, 1, base_port)).each do |process| running_processes[process.pid] = process readers[process] = reader