def write(self, pid):
        os.ftruncate(self.fd, 0)
        os.write(self.fd, "%d" % pid)
        os.fsync(self.fd)
dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/daemon.py/Pidfile.write/original