Example #1
0
 def pid(self):
     if self._process:
         if not self._pid:
             self._pid = utils.get_root_helper_child_pid(
                 self._process.pid,
                 self.cmd_without_namespace,
                 run_as_root=self.run_as_root)
         return self._pid
Example #2
0
 def pid(self):
     if self._process:
         if not self._pid:
             self._pid = utils.get_root_helper_child_pid(
                 self._process.pid,
                 self.cmd_without_namespace,
                 run_as_root=self.run_as_root)
         return self._pid