# server_update_socket

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

```c
void server_update_socket(void)
```

## 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#L177)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L331)
- [`server_client_lost`](/en/tmux/3.2a/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L385)
- [`server_signal`](/en/tmux/3.2a/reference/c-function-server-c-server_signal/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L432)
- [`server_start`](/en/tmux/3.2a/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L219)

## Referenced declarations

- [`ACCESSPERMS`](/en/tmux/3.2a/reference/c-define-compat-h-accessperms/) (constant)
- [`session.attached`](/en/tmux/3.2a/reference/c-struct-session-attached/) (attribute)
- [`socket_path`](/en/tmux/3.2a/reference/c-variable-socket_path/) (attribute)
