Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
#!/usr/bin/env ruby -wKU trap('SIGINT') { STDERR << "#{Time.now} ← receive\n" } fork { sleep 0.5; STDERR << "#{Time.now} ← send\n"; Process.kill('SIGINT', Process.ppid) } %x{true} pid = fork { exec('sleep', '4') } Process.wait(pid)
From the Design Piracy series on my blog: