When the waitpid() function is implemented in the following way,what does it return when the child is stopped due to SIGTSTP signal? and why?
waitpid(pid,&status,WUNTRACED);
where pid is process id of any process and status is of type int.
Does it also suspends the calling process till it not found any stopped or terminated child or it won't affect the ongoing process?