Is it possible to get the pid of a process at the other end of an IO
returned by Open3.popen3? I’m doing something not dissimilar to this:
Open3.popen3(“other_process”) do |ior, iow, ioe|
otherpid = ior.pid
raise "Oh no!" if otherpid.nil?
And it always raises. Looking at the source for Open3.popen3, it looks
like the child pid gets swallowed by the double-fork. Is there any way
to get it back?