← BYTES
Unix IPC·Starter·Ref: 15.1.7
What does the wait()/waitpid() family of syscalls let a parent process do?
Have a question about this video? Mention reference 15.1.7 when you contact us.
a.Pause the parent for a fixed number of seconds regardless of the child
b.Create a new pipe between the parent and child
c.Send a signal to a child process
d.Block until a specific child process (or any child) terminates, and retrieve its exit status -- the simplest form of parent-to-child-outcome communication
wait()/waitpid() let a parent synchronize with a child's termination and read back its exit status (or the signal that killed it) -- a minimal, built-in form of IPC conveying just one piece of information: how the child's execution ended. Failing to call wait() on a terminated child leaves it as a zombie (see the intermediate/advanced sections) until the parent exits or calls it.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES1517#UnixIPC