StudyingUnixInterface/8/fork/exec.c

11 lines
177 B
C
Raw Normal View History

2020-12-27 13:27:27 +00:00
#include <unistd.h>
#include <stdio.h>
int main(void) {
printf("exec fork.c -> b.out\n");
if(execl("./b.out", NULL) < 0) {
printf("execl error\n");
}
return 0;
}