def signal(num, remote=''):
    """Sends the signal to master or remote.

    :param num: Signal number.

    :param str|unicode remote: Remote address.

    :rtype: None

    :raises ValueError: If remote rejected the signal.

    :raises IOError: If unable to deliver to remote.
    """
