Revision b5dec052

View differences:

src/mad/ruby/CommandManager.rb
74 74
            std[0] << @stdin
75 75
            std[0].flush
76 76
        end
77

  
77 78
        std[0].close if !std[0].closed?
78 79

  
79
        @stdout=std[1].read
80
        @stdout = std[1].read
80 81
        std[1].close if !std[1].closed?
81 82

  
82
        @stderr=std[2].read
83
        @stderr = std[2].read
83 84
        std[2].close if !std[2].closed?
84 85

  
85
        @code=get_exit_code(@stderr)
86
        @code = get_exit_code(@stderr)
87

  
88
        log(@stderr)
86 89

  
87
        if @code!=0
90
        if @code != 0
88 91
            log("Command execution fail: #{command}")
89
            log(@stderr)
90 92
        end
91 93

  
92 94
        return @code

Also available in: Unified diff