How to handle execvp(...) errors after fork()?

Posted by Lukasz Lew on Stack Overflow See other posts from Stack Overflow or by Lukasz Lew
Published on 2009-10-18T13:58:02Z Indexed on 2010/05/19 5:00 UTC
Read the original article Hit count: 205

Filed under:
|
|
|
|

I do the regular thing:

  • fork()
  • execvp(cmd, ) in child

If execvp fails because no cmd is found, how can I notice this error in parent process?

© Stack Overflow or respective owner

Related posts about fork

Related posts about exec