CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::utils::ProcessData Struct Reference

POSIX capture bookkeeping for children started via NewProcessEx(captureOutput). More...

#include <Utils.h>

Public Member Functions

 ProcessData ()

Public Attributes

int outFD
 Parent read-end of the child's stdout (-1 = not captured).
int errFD
 Parent read-end of the child's stderr (-1 = not captured).

Detailed Description

POSIX capture bookkeeping for children started via NewProcessEx(captureOutput).

Holds the parent read-ends of the child's stdout/stderr pipes so that ReadProcessOutput() can drain them. Lifecycle (waitpid/kill) stays with the caller and with GetProcessStatus()/EndProcess()/WaitForProcess(), which operate on the bare pid and do not depend on this map.

Definition at line 614 of file Utils.h.

Constructor & Destructor Documentation

◆ ProcessData()

cmlabs::utils::ProcessData::ProcessData ( )
inline

Definition at line 615 of file Utils.h.

References errFD, and outFD.

Member Data Documentation

◆ errFD

int cmlabs::utils::ProcessData::errFD

Parent read-end of the child's stderr (-1 = not captured).

Definition at line 617 of file Utils.h.

Referenced by cmlabs::utils::NewProcessEx(), ProcessData(), cmlabs::utils::ReadProcessOutput(), and cmlabs::utils::ReleaseProcessCapture().

◆ outFD

int cmlabs::utils::ProcessData::outFD

Parent read-end of the child's stdout (-1 = not captured).

Definition at line 616 of file Utils.h.

Referenced by cmlabs::utils::NewProcessEx(), ProcessData(), cmlabs::utils::ReadProcessOutput(), and cmlabs::utils::ReleaseProcessCapture().


The documentation for this struct was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/Utils.h