# File lib/net/ssh/connection/channel.rb, line 367
    def on_process(&block)
      old, @on_process = @on_process, block
      old
    end