def link_shared_object(self, *args, **kwargs):
    self.actual._need_link = self._need_link
    self.actual.spawn = self.captureLink
    rc = self.actual.link_shared_object(*args, **kwargs)
    self.write()
    return rc
def link_shared_object(self, *args, **kwargs):
    self.actual._need_link = self._need_link
    self.actual.spawn = self.captureLink
    rc = self.actual.link_shared_object(*args, **kwargs)
    self.write()
    return rc