man blablabla !
precisava de saber as diferenças entre a execução da função system, execlp e fork!
$ man system
(...)
system() executes a command specified in command by calling /bin/sh -c command, and returns after the command has been completed. Dur-
ing execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
(...)
$ man execlp
(...)
The exec() family of functions replaces the current process image with a new process image. The functions described in this manual page
are front-ends for the function execve(2). (See the manual page for execve(2) for detailed information about the replacement of the
current process.)
(...)
$ man fork
(...)
fork() creates a new process by duplicating the calling process. The new process, referred to as the child, is an exact duplicate of
the calling process, referred to as the parent, except for the following points:
(...)