ProcessState
char ProcessState(int pid);
state = ProcessState(pid); \
pd, child, ProcessState(child));
shared_pd, firstborn, ProcessState(firstborn));
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
shared_pd, child0, ProcessState(child0));
grandchild_pd, grandchild, ProcessState(grandchild));
grandchild_pd, grandchild, ProcessState(grandchild));
pd, child, ProcessState(child));
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
if (verbose) fprintf(stderr, "Parent: grandchild is %d state='%c'\n", grandchild, ProcessState(grandchild));
fprintf(stderr, "Parent: child %d in state='%c'\n", child, ProcessState(child));
fprintf(stderr, "Parent: grandchild %d in state='%c'\n", grandchild, ProcessState(grandchild));
if (verbose) fprintf(stderr, "Parent: child is %d state='%c'\n", child, ProcessState(child));
if (verbose) fprintf(stderr, "Parent: grandchild is %d state='%c'\n", grandchild, ProcessState(grandchild));
fprintf(stderr, "Parent: child %d in state='%c'\n", child, ProcessState(child));
fprintf(stderr, "Parent: grandchild %d in state='%c'\n", grandchild, ProcessState(grandchild));