Sha256: d3a2034201cb0480f22330f2e1ea5f95916a0f5e766e1d7f089feba9f83d0f47
Contents?: true
Size: 460 Bytes
Versions: 6
Compression:
Stored size: 460 Bytes
Contents
require 'open4' echo = lambda do $stdout.write $stdin.read raise 'finish implementing me' end org_message = "hello, world!" got_message = nil exception = nil begin Open4.pfork4(echo) do |cid, stdin, stdout, stderr| stdin.write org_message stdin.close got_message = stdout.read end rescue RuntimeError => e exception = e.to_s end puts "org_message: #{org_message}" puts "got_message: #{got_message}" puts "exception : #{exception}"
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
open4-1.3.4 | samples/pfork4.rb |
open4-1.3.3 | samples/pfork4.rb |
open4-1.3.2 | samples/pfork4.rb |
open4-1.3.1 | samples/pfork4.rb |
open4-1.3.0 | samples/pfork4.rb |
open4-1.2.0 | samples/pfork4.rb |