# server_next_detached_session

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L418
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-server-fn-c-server_next_detached_session/

```c
static struct session * server_next_detached_session(struct session *s)
```

## Parameters

- `s` (`struct session *`)

## Called by

- [`server_destroy_session`](/en/tmux/3.2a/reference/c-function-server_destroy_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L443)

## Referenced declarations

- [`session.activity_time`](/en/tmux/3.2a/reference/c-struct-session-activity_time/) (attribute)
- [`session.attached`](/en/tmux/3.2a/reference/c-struct-session-attached/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`timercmp`](/en/tmux/3.2a/reference/c-define-compat-h-timercmp/) (constant)
