Originally Posted by Sud_paddy
what wait() Call do when call in parent and called in child () . is any diffrence between them ....
Since what you are asking is meaningless, why don't you just describe what it is that you are trying to accomplish.
Unless the child process is itself the parent of some other
process, any wait() call there will just return immediately (with error ECHILD) since it does not have any unwaited-for children.