MCPcopy Create free account
hub / github.com/tox-dev/filelock / pid

Method pid

src/filelock/_native/_unix.py:110–113  ·  view source on GitHub ↗

Read the holder's PID from the soft fallback marker.

(self)

Source from the content-addressed store, hash-verified

108
109 @property
110 def pid(self) -> int | None:
111 """Read the holder's PID from the soft fallback marker."""
112 with self._soft_marker() as soft:
113 return soft.pid
114
115 @contextmanager
116 def _soft_marker(self) -> Generator[SoftFileLock]:

Callers

nothing calls this directly

Calls 1

_soft_markerMethod · 0.95

Tested by

no test coverage detected