remzi-arpacidusseau / ostep-typos

50 stars 44 forks source link

Chapter 5.2 typo #95

Open anordin95 opened 7 months ago

anordin95 commented 7 months ago

Original text:

In this example (p2.c), the parent process calls wait() to delay its
execution until the child finishes executing. When the child is done,
wait() returns to the parent.

I think "wait() returns to the parent " can be misleading. The wait() function never left the parent process. And, given the fork() concept was just introduced, I think it's worth being explicit.

Perhaps, something like this would resolve ambiguity:

"The wait() function, as expected, stalls execution in the parent process until it observes the child-process has finished."