]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Change Daemon class to better match process command lines.
authorBrian Haley <brian.haley@hp.com>
Tue, 7 May 2013 15:06:29 +0000 (11:06 -0400)
committerBrian Haley <brian.haley@hp.com>
Tue, 7 May 2013 21:04:20 +0000 (17:04 -0400)
commit6db5b0b77d0dd8b0f5010a71c769a821881797c5
tree442d191561c8d920da30c388ae0a03162280ce51
parent17336b9cb64048652bb6853fe0429699b4762a40
Change Daemon class to better match process command lines.

Add additional uuid argument Daemon class to help it better
match output from /proc/$id/cmdline to the correct daemon.
If there is a stale pid in the pidfile, and that process has
the same name, then it could match accidentally and not
start the daemon up properly.

Fixes bug 1177416

Change-Id: I1109ca73c539c5e96cbe3dbb55ce68c92013ee10
quantum/agent/linux/daemon.py
quantum/agent/metadata/namespace_proxy.py
quantum/tests/unit/test_linux_daemon.py