This talk will be a safari tour through some unique features and internals of Unicorn. The Unicorn codebase is the best, most comprehensive example of Unix systems programming in Ruby that I've come across.
pid = Process.fork do read.close write.close_on_exec = true begin Rubinius::Spawn.exec(env, prog, argv, redirects, options) rescue => e write.write Marshal.dump(e) exit! 1 end end # .. end end end fork + exec
pid = Process.fork do read.close write.close_on_exec = true begin Rubinius::Spawn.exec(env, prog, argv, redirects, options) rescue => e write.write Marshal.dump(e) exit! 1 end end # .. end end end fork + exec
and a pipe(2) and a exec(2) and smart people will still be using them to solve hard problems reliably and predictably, just like they were thirty years ago.” ~ Ryan Tomayko