Save client PID so that we avoid calling get_client_pid() every now and
then. This, more importantly, allows sending SIGCONT to client which is
already stopped using SIGKILL.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit
54c3bb55312a06e9e230f806b8269b089ca81121)
def gather_mount_info(self):
status = self.admin_socket(['status'])
self.id = status['id']
+ self.client_pid = status['metadata']['pid']
try:
self.inst = status['inst_str']
self.addr = status['addr_str']