Make sure that resource tracker process is running. This can be run from any process. Usually a child process will use the resource created by its parent.
(self)
| 141 | return self._fd |
| 142 | |
| 143 | def ensure_running(self): |
| 144 | '''Make sure that resource tracker process is running. |
| 145 | |
| 146 | This can be run from any process. Usually a child process will use |
| 147 | the resource created by its parent.''' |
| 148 | return self._ensure_running_and_write() |
| 149 | |
| 150 | def _teardown_dead_process(self): |
| 151 | os.close(self._fd) |