What is the difference between using system() to execute a binary and using the combination of fork/execvp.
Is there any security/portablility/performance difference.>
system() will fork()/exec() the shell, and then shell will fork()/exec() the program you want to launch.
system()
fork()
exec()
So system() is twice as heavy as fork()/exec()