Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Unix
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformProcess.h |
| Include | #include "Unix/UnixPlatformProcess.h" |
Syntax
struct FProcState
Remarks
Wrapper around Unix pid_t. Should not be copyable as changes in the process state won't be properly propagated to all copies.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFireAndForget | Whether this child is fire-and-forget | |
| bool | bHasBeenWaitedFor | Whether the process's return code has been collected | |
| bool | bIsRunning | Whether the process has finished or not (cached) | |
| pid_t | ProcessId | Process id | |
| int32 | ReturnCode | Return code of the process (if negative, means that process did not finish gracefully but was killed/crashed |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FProcState () |
Default constructor. | ||
FProcState
(
const FProcState& Other |
Copy constructor - should not be publicly accessible | ||
FProcState
(
pid_t InProcessId, |
Initialization constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FProcState () |
Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| pid_t | GetProcessId () |
Getter for process id | |
| bool | GetReturnCode
(
int32* ReturnCodePtr |
Returns child's return code (only valid to call if not running) | |
| bool | IsRunning () |
Returns whether this process is running. | |
| void | Wait () |
Waits for the process to end. Has a side effect (stores child's return code). |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FProcState & | operator=
(
const FProcState& Other |
Assignment operator - should not be publicly accessible |