Look fine to me. You might consider eliminating the while-loop around the call to wait() by calling waitpid() instead, but it's no big deal and using wait() is more primitive and therefore more portable.
Look fine to me. You might consider eliminating the while-loop around the call to wait() by calling waitpid() instead, but it's no big deal and using wait() is more primitive and therefore more portable.
Thanks. I guess I'll just use it like that and see how it goes.