If 0 means no option parent has to wait for terminates child. If child_pid is -1 then means any arbitrarily child, here waitpid () work same as wait () work.