Go to the documentation of this file.
11 #include <sys/types.h>
12 #include <sys/resource.h>
int status
The exit status of the process.
Definition: process.h:34
struct rusage rusage
The resource usage of the process.
Definition: process.h:35
int process_kill_waitpid(pid_t pid, int timeout)
Attempt to cleanly terminate process pid for timeout seconds by sending SIGTERM If the process has no...
void process_putback(struct process_info *p)
Return a process_info structure to the queue.
Describes a completed process.
Definition: process.h:32
struct process_info * process_waitpid(pid_t pid, int timeout)
Wait for a specific process to complete and return its status.
struct process_info * process_wait(int timeout)
Wait for a process to complete, and return its status.
int process_pending()
Detect if a child process has completed.
pid_t pid
The process ID of a complete process.
Definition: process.h:33