# client_get_lock

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

```c
static int client_get_lock(char *)
```

## Parameters

- `lockfile` (`char *`)

## Calls

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

## Referenced by

- [`client_connect`](/en/tmux/3.2a/reference/c-function-client-c-client_connect/) (function)
