# alerts_check_session

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L103
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-alerts_check_session/

```c
void alerts_check_session(struct session *s)
```

## Parameters

- `s` (`struct session *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.2a/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-attach-session.c#L176)
- [`cmd_switch_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-switch-client.c#L153)
- [`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#L462)

## Calls

- [`alerts_check_all`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_check_all/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L108)

## Referenced declarations

- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`session.windows`](/en/tmux/3.2a/reference/c-struct-session-windows/) (attribute)
