]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid using logging in signal handler
authorshihanzhang <shihanzhang@huawei.com>
Tue, 14 Jul 2015 09:32:48 +0000 (17:32 +0800)
committershihanzhang <shihanzhang@huawei.com>
Wed, 15 Jul 2015 09:16:31 +0000 (17:16 +0800)
commitbc38335d5899b0a8bf195e30e264ff01f166ec7f
treefa56dbe7a8e697ba74e9745304edd1885311c621
parent9d84a424f2e3b50543bcfd1e4c59873c57dc8400
Avoid using logging in signal handler

In some cases, logging can grab locks and thusly attempt to reschedule,
which will fail in signal handlers. this patch removes the actions
from the signal handers, just set a flat if it got a signal, then in
rpc_loop, check the flag and perform appropriate actions.

Change-Id: I7a477e1c95b63fa8070ec9d08656156571421bb6
Partial-Bug: #1029727
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py