UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnixPlatformProcess.cpp File Reference
#include "Unix/UnixPlatformProcess.h"
#include "Unix/UnixPlatformCrashContext.h"
#include "Unix/UnixPlatformRealTimeSignals.h"
#include "Unix/UnixForkPageProtector.h"
#include "GenericPlatform/GenericPlatformFile.h"
#include "Containers/StringConv.h"
#include "Logging/LogMacros.h"
#include "HAL/FileManager.h"
#include "HAL/IConsoleManager.h"
#include "Misc/Parse.h"
#include "HAL/Runnable.h"
#include "HAL/RunnableThread.h"
#include "Misc/CommandLine.h"
#include "Misc/Paths.h"
#include "Unix/UnixPlatformRunnableThread.h"
#include "Misc/EngineVersion.h"
#include <spawn.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <asm/ioctls.h>
#include <sys/prctl.h>
#include "Unix/UnixPlatformOutputDevices.h"
#include "Unix/UnixPlatformTLS.h"
#include "Containers/CircularQueue.h"
#include "Misc/FileHelper.h"
#include "Misc/OutputDeviceRedirector.h"
#include "Misc/CoreDelegates.h"
#include "Misc/App.h"
#include "Misc/Fork.h"
#include "HAL/PlatformTime.h"
#include "Misc/DateTime.h"

Classes

struct  FChildWaiterThread
 
struct  FProcEnumData
 

Namespaces

namespace  PlatformProcessLimits
 
namespace  UnixPlatformProcess
 

Macros

#define WAIT_AND_FORK_QUEUE_LENGTH   4096
 
#define WAIT_AND_FORK_CHILD_SPAWN_DELAY   0.125
 
#define WAIT_AND_FORK_PARENT_SHUTDOWN_EXIT_CODE   0
 
#define WAIT_AND_FORK_RESPONSE_TIMEOUT_EXIT_CODE   1
 

Enumerations

enum  { PlatformProcessLimits::MaxUserHomeDirLength = UNIX_MAX_PATH + 1 }
 
enum  { PlatformProcessLimits::MaxComputerName = 128 , PlatformProcessLimits::MaxBaseDirLength = UNIX_MAX_PATH + 1 , PlatformProcessLimits::MaxArgvParameters = 256 , PlatformProcessLimits::MaxUserName = LOGIN_NAME_MAX }
 

Functions

 DECLARE_LOG_CATEGORY_CLASS (LogFork, Log, All)
 
 DECLARE_LOG_CATEGORY_CLASS (LogUtilization, Verbose, All)
 
FString UnixPlatformProcess::GetReadableTime (double InDeltaSeconds)
 
bool UnixPlatformProcess::AttemptToMakeExecIfNotAlready (const FString &AbsoluteFilename)
 

Macro Definition Documentation

◆ WAIT_AND_FORK_CHILD_SPAWN_DELAY

#define WAIT_AND_FORK_CHILD_SPAWN_DELAY   0.125

◆ WAIT_AND_FORK_PARENT_SHUTDOWN_EXIT_CODE

#define WAIT_AND_FORK_PARENT_SHUTDOWN_EXIT_CODE   0

◆ WAIT_AND_FORK_QUEUE_LENGTH

#define WAIT_AND_FORK_QUEUE_LENGTH   4096

◆ WAIT_AND_FORK_RESPONSE_TIMEOUT_EXIT_CODE

#define WAIT_AND_FORK_RESPONSE_TIMEOUT_EXIT_CODE   1

Function Documentation

◆ DECLARE_LOG_CATEGORY_CLASS() [1/2]

DECLARE_LOG_CATEGORY_CLASS ( LogFork  ,
Log  ,
All   
)

◆ DECLARE_LOG_CATEGORY_CLASS() [2/2]

DECLARE_LOG_CATEGORY_CLASS ( LogUtilization  ,
Verbose  ,
All   
)