# tmux_identity:check/2

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_identity.erl#L92
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_identity-check-2/

```
check/2
-spec check(t(), pos_integer()) -> ok | {error, map()}.
```

Re-observe the PID and compare its incarnation token. A successful result is a momentary observation, not ownership, permission to signal, or a same-connection guarantee.

## Parameters

- `Identity` (`t()`)
- `ObservedPid` (`pos_integer()`)
