Skip to content

Instantly share code, notes, and snippets.

View stumped2's full-sized avatar

Geoffrey Corey stumped2

  • Apple Inc
  • Seattle, WA
View GitHub Profile
void sorter(int processes, pid_t *pids, int toSort[][2], int fromSort[][2])
{
int i, j;
for (i = 0; i < processes; i++) {
switch (pids[i] = fork()) {
case -1: /* Error making shild */
perror("creating child");