def sig_handler(signum, frame):

    if not sending_in_progress:
        send_all()
        exit(signum)
    else:
        config['run_once'] = True
Send all new data when signal arrived.
dataset/ETHPy150Open openstack/bareon/contrib/fuel_bootstrap/files/trusty/usr/bin/send2syslog.py/sig_handler