Update KillFilter to stop at '\0' for readlink() function.
Python's readlink() implementation doesn't stop at '\0' when reading
file path. Thus after dnsmasq upgrade, it may return something like
'/usr/sbin/dnsmasq\03453 (deleted)', while C's or Shell's readlink()
return '/usr/sbin/dnsmasq'. This patch fixes this problem by cutting
the readlink() results with '\0', so that KillFilter could get correct
path.
Reviewed: https:/ /review. openstack. org/29053 github. com/openstack/ oslo-incubator/ commit/ ea78eecbd275fa7 466e56d6eb0dc7a 3c60f5b640
Committed: http://
Submitter: Jenkins
Branch: master
commit ea78eecbd275fa7 466e56d6eb0dc7a 3c60f5b640 360.cn>
Author: Yufang Zhang <zhangyufang@
Date: Tue May 14 14:58:19 2013 +0800
Update KillFilter to stop at '\0' for readlink() function.
Python's readlink() implementation doesn't stop at '\0' when reading sbin/dnsmasq\ 03453 (deleted)', while C's or Shell's readlink() dnsmasq' . This patch fixes this problem by cutting
file path. Thus after dnsmasq upgrade, it may return something like
'/usr/
return '/usr/sbin/
the readlink() results with '\0', so that KillFilter could get correct
path.
Bug 1179793
Change-Id: I7354941e0508e0 19c8c9b63b87ad3 9f52ccb51ca