• Home
  • Raw
  • Download

Lines Matching full:process

23 // Manages a process.  Can create the process, attach to an existing
24 // process by pid or pid file, and kill the process. Upon destruction
25 // any managed process is killed with SIGKILL. Use Release() to
26 // release the process from management. A given system process may
27 // only be managed by one Process at a time.
28 class BRILLO_EXPORT Process {
30 Process();
31 virtual ~Process();
60 // Indicates we want to redirect |child_fd| in the child process's
62 // from child process's perspective iff |is_input|.
69 // Set a flag |close_unused_fds| to indicate if the child process
71 // parent process. This will not close the file descriptors for
75 // Set the real/effective/saved user ID of the child process.
78 // Set the real/effective/saved group ID of the child process.
81 // Set the capabilities assigned to the child process.
87 // implementation if your Process implementation does not support this).
90 // Apply a syscall filter to the process using the policy file at |path|.
92 // implementation if your Process implementation does not support this).
95 // Enter new PID namespace when this process is run.
97 // implementation if your Process implementation does not support this).
100 // Set a flag |inherit| to indicate if the child process intend to
101 // inherit signal mask from the parent process. When |inherit| is
102 // set to true, the child process will inherit signal mask from the
103 // parent process. This could cause unintended side effect, where all
104 // the signals to the child process might be blocked if they are set
111 // before we exec() the process. The callback may return false to cause Start
112 // to return false without starting the process.
115 // Sets whether starting the process should search the system path or not.
119 // Gets the pipe file descriptor mapped to the process's |child_fd|.
122 // Starts this process, returning true if successful.
125 // Waits for this process to finish. Returns the process's exit
128 // after forking and before execing the child process.
131 // Start and wait for this process to finish. Returns same value as
135 // Returns the pid of this process or else returns 0 if there is no
136 // corresponding process (either because it has not yet been started
140 // Sends |signal| to process and wait |timeout| seconds until it
141 // dies. If process is not a child, returns immediately with a
142 // value based on whether kill was successful. If the process is a
143 // child and |timeout| is non-zero, returns true if the process is
147 // Resets this Process object to refer to the process with |pid|.
148 // If |pid| is zero, this object no longer refers to a process.
155 // Releases the process so that on destruction, the process is not killed.
158 // Returns if |pid| is a currently running process.
162 // creating the process.
166 class BRILLO_EXPORT ProcessImpl : public Process {
198 // Parent (our) side of the pipe to the child process.
219 // Pid of currently managed process or 0 if no currently managed
220 // process. pid must not be modified except by calling
233 // Flag indicating to inherit signal mask from the parent process. It
234 // is set to false by default, which means by default the child process
235 // will not inherit signal mask from the parent process.
238 // parent process when starting the child process, which avoids leaking
239 // unnecessary file descriptors to the child process.
241 // Whether to create this process in a new PID namespace.