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
What's the point of using pid if the function TELL_PARENT() doesn't
static int pfd1 , pfd2;
if (write(pfd2, "c", 1) != 1)
actually use it?
I think it's an attempt by the authors to confuse their readers.....or just an omission.
Check the errata for other "oops": http://www.apuebook.com/index.html
There's nothing about it in the errata.