# server_client_check_nested

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L223
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-server_client_check_nested/

```c
int server_client_check_nested(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L74)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L195)

## Calls

- [`environ_find`](/en/tmux/3.7c/reference/c-function-environ_find/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L228)

## Referenced declarations

- [`all_window_panes`](/en/tmux/3.7c/reference/c-variable-all_window_panes/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`client.environ`](/en/tmux/3.7c/reference/c-struct-client-environ/) (attribute)
- [`window_pane.tty`](/en/tmux/3.7c/reference/c-struct-window_pane-tty/) (attribute)
- [`client.ttyname`](/en/tmux/3.7c/reference/c-struct-client-ttyname/) (attribute)
- [`environ_entry.value`](/en/tmux/3.7c/reference/c-struct-environ_entry-value/) (attribute)
