我做常规的事情:
如果execvp因为没有找到cmd而失败,我怎么能在父进程中注意到这个错误?
c++ linux posix fork exec
c++ ×1
exec ×1
fork ×1
linux ×1
posix ×1