1

making a child to wait for parent in fork()

view story
linux-howto

http://stackoverflow.com – This program gets a sentence in parent process and prints it in upper case in child process. I want the child to wait for the parent. I used sleep() to make the child process to wait. Is there any method of making a child to wait for the parent ? Can i implement that with signal() ? Thanks in advance!!! #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<sys/types.h> #include<sys/wait.h> #include<sys/ipc.h> #include<sys/shm.h> #include<ctype.h> #define size 50 main() { int pid,shmid,i,key=1234; char *name,*shmaddr; if((s (HowTos)