11 #include <sys/types.h>
12 #include <sys/resource.h>
struct rusage rusage
The resource usage of the process.
Definition: process.h:34
void process_putback(struct process_info *p)
Return a process_info structure to the queue.
int status
The exit status of the process.
Definition: process.h:33
Describes a completed process.
Definition: process.h:31
int process_pending()
Detect if a child process has completed.
pid_t pid
The process ID of a complete 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.