fork and pipe not working in client server program

view story

http://stackoverflow.com – hi I made a client server program using fifo for requesting client and pipe and fork to call processing client. But there is some strange problem coming.Pipe is getting creted fine and using fork() child is also created becoz i can see the pid.but after that it is stuck and does not go inside parent,child or fail loop. and remain there. But if I remove the pipe creation and just call fork() it goes inside the child loop but stucks at the execl as it does not have pipe fd.. now my question why this fork() after pipe is not working.why its not entering the loop,when pid is 0.why its getting stu (HowTos)