import signal


def _negative_signal_number(signame):
    """Return negative number to represent signal named `signame`.

    If signame is unknown, return -99.
    """
    try:
        return -getattr(signal, signame)
    except AttributeError:
        return -99