StudyingUnixInterface/8/fork/exec.c
2020-12-27 21:27:27 +08:00

11 lines
177 B
C

#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;
}