mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
18 lines
247 B
Markdown
18 lines
247 B
Markdown
# ProcessState
|
|
|
|
`Process::State()` casts directly from `WslcProcessState`.
|
|
|
|
Underlying C values:
|
|
|
|
- `Unknown = 0`
|
|
- `Running = 1`
|
|
- `Exited = 2`
|
|
- `Signalled = 3`
|
|
|
|
```cpp
|
|
if (process.State() == static_cast<ProcessState>(1))
|
|
{
|
|
// running
|
|
}
|
|
```
|