Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created June 24, 2015 21:44
Show Gist options
  • Save shichao-an/5cb7ed8df3666337a292 to your computer and use it in GitHub Desktop.
Save shichao-an/5cb7ed8df3666337a292 to your computer and use it in GitHub Desktop.
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
pid_t wait3(int *statloc, int options, struct rusage *rusage);
pid_t wait4(pid_t pid, int *statloc, int options, struct rusage *rusage);
/* Both return: process ID if OK, 0, or −1 on error */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment