#chan.on_request("exit-signal") do |ch, data| # # TODO: This gets called if the program is killed by a signal # # might also be a worthwhile thing to report # exit_signal = data.read_string.to_i # warn ">>> " + exit_signal.inspect # output.log_command_killed(cmd, exit_signal) #end chan.on_open_failed do |_ch| # TODO: What do do here? # I think we should raise something end chan.on_process do |_ch| # TODO: I don't know if this is useful end chan.on_eof do |_ch| # TODO: chan sends EOF before the exit status has been # writtend end
https://martianbase.net/system/media_attachments/files/115/782/445/129/019/505/original/0f60dc77be596ff3.png