# session_lock_fds

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_session_lock/session_lock_fds)

Return descriptors a spawned server must inherit to count as this session.

`flock` locks belong to the open file description, so a child given the
descriptor holds the same lock: the server keeps the install marked in use
if it outlives its client, and does not count as a second session.

## Signature

```python
session_lock_fds() -> tuple[int, ...]
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1425cf0b7c5e88bff8735778af82cf5c90564085/libs/code/deepagents_code/_session_lock.py#L90)