# proc_exit

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

```c
void proc_exit(struct tmuxproc *tp)
```

## Parameters

- `tp` (`struct tmuxproc *`)

## Called by

- [`client_dispatch`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L591)
- [`client_dispatch_attached`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_attached/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L778)
- [`client_dispatch_wait`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L674)
- [`client_exit`](/en/tmux/3.7c/reference/c-function-client-c-client_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L227)
- [`client_signal`](/en/tmux/3.7c/reference/c-function-client-c-client_signal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L541)

## Referenced declarations

- [`tmuxpeer.entry`](/en/tmux/3.7c/reference/c-struct-tmuxpeer-entry/) (attribute)
- [`tmuxproc.exit`](/en/tmux/3.7c/reference/c-struct-tmuxproc-exit/) (attribute)
- [`tmuxpeer.ibuf`](/en/tmux/3.7c/reference/c-struct-tmuxpeer-ibuf/) (attribute)
- [`tmuxproc.peers`](/en/tmux/3.7c/reference/c-struct-tmuxproc-peers/) (attribute)
- [`tmuxproc`](/en/tmux/3.7c/reference/c-struct-tmuxproc/) (struct)
