#include <ace/Process.h>
class ACE_Process {
public:ACE_Process (void);~ACE_Process (void);pid_t spawn (ACE_Process_Options &options);int wait (int *status = 0);int wait (const ACE_Time_Value &tv);int kill (int signum = SIGINT);int terminate (void);pid_t getpid (void);PROCESS_INFORMATION process_info (void);protected:PROCESS_INFORMATION process_info_;pid_t child_id_;};
Notice that on UNIX platforms, if the setenv is used, the
spawn is using the execve system call. It means that the
command_line should include a full path to the program file
(execve does not search the PATH). If setenv is not used
then, the spawn is using the execvp which searches for the
program file in the PATH variable.
ACE_Process (void);
~ACE_Process (void);
pid_t spawn (ACE_Process_Options &options);
options.
int wait (int *status = 0);
int wait (const ACE_Time_Value &tv);
int kill (int signum = SIGINT);
int terminate (void);
pid_t getpid (void);
PROCESS_INFORMATION process_info (void);
PROCESS_INFORMATION process_info_;
pid_t child_id_;
harrison@cs.wustl.edu