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