# proc_loop

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L222
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L401)
- [`server_start`](/en/tmux/3.7c/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L254)

## Calls

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

## Referenced declarations

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