Library: Foundation
Package: Processes
Header: Poco/Process.h
A handle for a process created with Process::launch().
This handle can be used to determine the process ID of the newly created process and it can be used to wait for the completion of a process.
Member Functions: id, operator =, wait
typedef ProcessImpl::PIDImpl PID;
ProcessHandle(
const ProcessHandle & handle
);
Creates a ProcessHandle by copying another one.
ProcessHandle(
ProcessHandleImpl * pImpl
);
~ProcessHandle();
Destroys the ProcessHandle.
PID id() const;
Returns the process ID.
ProcessHandle & operator = (
const ProcessHandle & handle
);
Assigns another handle.
int wait() const;
Waits for the process to terminate and returns the exit code of the process.