While doing execl from child, code runs fine but it does not return to shell prompt. I need to press any key for that. What might be the reason for it.
This is a condition of zombie process, you have to use wait system call in the parent process to wait for the child to finish its execution alternatively .