What can cause exec to fail? What happens next?

Viewed 35644

What are the reasons that an exec (execl,execlp, etc.) can fail? If you make a call to exec and it returns, are there any best practices other than just panicking and calling exit?

5 Answers
Related