# proc_remove_peer

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L341
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-proc_remove_peer/

```c
void proc_remove_peer(struct tmuxpeer *peer)
```

## Parameters

- `peer` (`struct tmuxpeer *`)

## Called by

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

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L344)

## Referenced declarations

- [`tmuxpeer.entry`](/en/tmux/latest/reference/c-struct-tmuxpeer-entry/) (attribute)
- [`tmuxpeer.event`](/en/tmux/latest/reference/c-struct-tmuxpeer-event/) (attribute)
- [`tmuxpeer.ibuf`](/en/tmux/latest/reference/c-struct-tmuxpeer-ibuf/) (attribute)
- [`tmuxpeer.parent`](/en/tmux/latest/reference/c-struct-tmuxpeer-parent/) (attribute)
- [`tmuxproc.peers`](/en/tmux/latest/reference/c-struct-tmuxproc-peers/) (attribute)
- [`tmuxpeer`](/en/tmux/latest/reference/c-struct-tmuxpeer/) (struct)
