Sha256: 53afcfbe6ac50e6b5e2372140460c186a66443fd041388b3c4d10c6fc4efbf0d
Contents?: true
Size: 587 Bytes
Versions: 52
Compression:
Stored size: 587 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "Process.setsid" do with_feature :fork do it "establishes this process as a new session and process group leader" do read, write = IO.pipe pid = Process.fork { begin read.close pgid = Process.setsid write << pgid.class.to_s write.close rescue Exception => e write << e << e.backtrace end Process.exit! } write.close klass = read.gets read.close klass.should == "Fixnum" end end end
Version data entries
52 entries across 52 versions & 2 rubygems