Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( pid == 0 ) {
- execvp(progr, argv);
- perror("Error executing");
- return;
- } else if( pid < 0 ) {
- perror("vFork error");
- return;
- } else {
- waitpid(pid, NULL, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement