start_export() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/shell/system-command.rb, line 116
    def start_export
      notify "job(%id) start exp-pipe.", @shell.debug?
      _eop = true
      th = Thread.start{
        Thread.critical = true
        begin
          Thread.critical = false
          @input.each{|l| @pipe_out.print l}
          _eop = false
        rescue Errno::EPIPE
          _eop = false
        ensure
          if _eop
            notify("shell: warn: Process finishing...",
                   "wait for Job(%id) to finish pipe exporting.",
                   "You can use Shell#transact or Shell#check_point for more safe execution.")
#           Tracer.on
            redo
          end
          Thread.exclusive do
            notify "job(%id) close exp-pipe.", @shell.debug?
            @pipe_out.close
          end
        end
      }
    end
Register or log in to add new notes.