On page 502 in the book "Advanced Programming in the Unix Environment" by Stevens and Rago,
they have a the following function to help sychronize the parent and
child.
What's the point of using pid if the function TELL_PARENT() doesn'tCode:static int pfd1[2] , pfd2[2]; void TELL_PARENT(pid_t pid) { if (write(pfd2[1], "c", 1) != 1) err_sys("write error"); }
actually use it?