module Signal

You should have received a copy of the GNU General Public License along with signal-utils. If not, see <www.gnu.org/licenses/>.

Public Class Methods

signame(signo) click to toggle source

The built-in signame seems to get confused with signo > 31, also add ‘SIG’ to the name

# File lib/signal-utils.rb, line 20
def self.signame(signo)
  s = Signal::list.invert[signo]
  if s
    "SIG" + s
  else
    signo
  end
end