Home | History | Annotate | Download | only in brillo

Lines Matching full:process

22 // Manages a process.  Can create the process, attach to an existing
23 // process by pid or pid file, and kill the process. Upon destruction
24 // any managed process is killed with SIGKILL. Use Release() to
25 // release the process from management. A given system process may
26 // only be managed by one Process at a time.
27 class BRILLO_EXPORT Process {
29 Process();
30 virtual ~Process();
54 // Indicates we want to redirect |child_fd| in the child process's
56 // from child process's perspective iff |is_input|.
63 // Set a flag |close_unused_fds| to indicate if the child process
65 // parent process. This will not close the file descriptors for
69 // Set the real/effective/saved user ID of the child process.
72 // Set the real/effective/saved group ID of the child process.
75 // Set the capabilities assigned to the child process.
81 // implementation if your Process implementation does not support this).
84 // Apply a syscall filter to the process using the policy file at |path|.
86 // implementation if your Process implementation does not support this).
89 // Enter new PID namespace when this process is run.
91 // implementation if your Process implementation does not support this).
94 // Set a flag |inherit| to indicate if the child process intend to
95 // inherit signal mask from the parent process. When |inherit| is
96 // set to true, the child process will inherit signal mask from the
97 // parent process. This could cause unintended side effect, where all
98 // the signals to the child process might be blocked if they are set
105 // before we exec() the process. The callback may return false to cause Start
106 // to return false without starting the process.
109 // Sets whether starting the process should search the system path or not.
113 // Gets the pipe file descriptor mapped to the process's |child_fd|.
116 // Starts this process, returning true if successful.
119 // Waits for this process to finish. Returns the process's exit
122 // after forking and before execing the child process.
125 // Start and wait for this process to finish. Returns same value as
129 // Returns the pid of this process or else returns 0 if there is no
130 // corresponding process (either because it has not yet been started
134 // Sends |signal| to process and wait |timeout| seconds until it
135 // dies. If process is not a child, returns immediately with a
136 // value based on whether kill was successful. If the process is a
137 // child and |timeout| is non-zero, returns true if the process is
141 // Resets this Process object to refer to the process with |pid|.
142 // If |pid| is zero, this object no longer refers to a process.
149 // Releases the process so that on destruction, the process is not killed.
152 // Returns if |pid| is a currently running process.
156 // creating the process.
160 class BRILLO_EXPORT ProcessImpl : public Process {
191 // Parent (our) side of the pipe to the child process.
211 // Pid of currently managed process or 0 if no currently managed
212 // process. pid must not be modified except by calling
224 // Flag indicating to inherit signal mask from the parent process. It
225 // is set to false by default, which means by default the child process
226 // will not inherit signal mask from the parent process.
229 // parent process when starting the child process, which avoids leaking
230 // unnecessary file descriptors to the child process.