Comment 2 for bug 1179793

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/29053
Committed: http://github.com/openstack/oslo-incubator/commit/ea78eecbd275fa7466e56d6eb0dc7a3c60f5b640
Submitter: Jenkins
Branch: master

commit ea78eecbd275fa7466e56d6eb0dc7a3c60f5b640
Author: Yufang Zhang <zhangyufang@360.cn>
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
    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.

    Bug 1179793

    Change-Id: I7354941e0508e019c8c9b63b87ad39f52ccb51ca