Socket programming in c with the use of shared memory concept for parent child communication