# proc_loop

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

```c
void proc_loop(struct tmuxproc *tp, int(*loopcb)(void))
```

## Parameters

- `tp` (`struct tmuxproc *`)
- `loopcb` (`int(*)(void)`)

## Called by

- [`client_main`](/en/tmux/3.2a/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L393)
- [`server_start`](/en/tmux/3.2a/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L243)

## Calls

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

## Referenced declarations

- [`tmuxproc.exit`](/en/tmux/3.2a/reference/c-struct-tmuxproc-exit/) (attribute)
- [`tmuxproc.name`](/en/tmux/3.2a/reference/c-struct-tmuxproc-name/) (attribute)
- [`tmuxproc`](/en/tmux/3.2a/reference/c-struct-tmuxproc/) (struct)
