def reopen_io(io, path)
      io.reopen(::File.open(path, "ab")) if path
      io.sync = true
    end
def reopen_io(io, path)
      io.reopen(::File.open(path, "ab")) if path
      io.sync = true
    end
Redirect file descriptors inherited from the parent.