Sha256: f70b24f77524144ee7163ca5f62e349234bfc62bd08fde9c34aa7fa735d450af
Contents?: true
Size: 327 Bytes
Versions: 8
Compression:
Stored size: 327 Bytes
Contents
require 'slave' # # slaves never outlive their parent. if the parent exits, even under kill -9, # the child will die. # slave = Slave.new{ at_exit{ p 'child' }; 'the server is this string' } Process.kill brutal=9, the_parent_pid=Process.pid # # even though parent dies a nasty death the child will still print 'child' #
Version data entries
8 entries across 8 versions & 1 rubygems