function convert(signal) {
    return signals[signal] || 0
}
Converts a signal name to a number.
@param {string} signal - the signal name to convert into a number
@returns {number} - the return code for the signal