struct LocalAgentResult

Defined at line 17 of file ../../src/developer/debug/zxdb/local_agent.h

Public Members

Status status
int exit_code
int agent_pid
unique_ptr pipe

Public Methods

void LocalAgentResult (Status status, int exit_code)

Defined at line 41 of file ../../src/developer/debug/zxdb/local_agent.h

void LocalAgentResult (int agent_pid, std::unique_ptr<debug::BufferedBidiPipe> pipe)

Defined at line 42 of file ../../src/developer/debug/zxdb/local_agent.h

Enumerations

enum Status
Name Value Comments
kFailed 0

The fork request or something similar failed. An error message will have already been printed
to the screen and the caller should exit with the exit_code.

kSuccess 1

The fork succeeded and the caller should continue. The agent_pid and pipe members will be
valid and should be used to communicate with the forked agent. The caller should be sure
to waitpid() on the agent_pid before exiting to prevent a zombie.

kInForked 2

This is the forked process running the debug agent. The caller should exit with the exit_code
(representing the return value of the forked process).

Defined at line 18 of file ../../src/developer/debug/zxdb/local_agent.h