lib/hawatel_ps/linux/proc_control.rb
def resume
        process_status = status
        if process_status  == 'stopped'
          return status if Process.kill('CONT', @proc_attrs[:pid].to_i)
        end
        process_status
      rescue Errno::EPERM
        return 'non-privilaged operation'
      end
# Resume suspended process (equal to Kill -SIGCONT <pid> command)
#
# @example
#   p = HawatelPS.search_by_name('top')
#   p.resume
#
# @return [String] - current process status (running, stopped ..)
Resume suspended process (equal to Kill -SIGCONT  command)
Resume suspended process ( equal to Kill - SIGCONT command )
def resume
        process_status = status
        if process_status  == 'stopped'
          return status if Process.kill('CONT', @proc_attrs[:pid].to_i)
        end
        process_status
      rescue Errno::EPERM
        return 'non-privilaged operation'
      end
def resume process_status = status if process_status == 'stopped' return status if Process . kill ( 'CONT' , @proc_attrs [ :pid ] . to_i ) end process_status rescue Errno :: EPERM return 'non-privilaged operation' end
Resume suspended process (equal to Kill -SIGCONT <pid> command)
Resume suspended process ( equal to Kill - SIGCONT <pid > command )
current process status (running, stopped ..)
current process status ( running stopped .. )
String
example
p = HawatelPS.search_by_name('top') p.resume
p = HawatelPS . search_by_name ( ' top ' ) p . resume