MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _release_skill_lock

Function _release_skill_lock

graphify/install.py:90–96  ·  view source on GitHub ↗
(fh)

Source from the content-addressed store, hash-verified

88
89
90def _release_skill_lock(fh) -> None:
91 with contextlib.suppress(OSError):
92 if fcntl is not None:
93 fcntl.flock(fh.fileno(), fcntl.LOCK_UN)
94 else:
95 fh.seek(0)
96 msvcrt.locking(fh.fileno(), msvcrt.LK_UNLCK, 1)
97
98
99@contextlib.contextmanager

Callers 1

_skill_lockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected