exec_fork.c 152 B

123456789
  1. #include <errno.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. int main() {
  5. char* argv[] = {"./fork", NULL};
  6. execv(argv[0], argv);
  7. return 0;
  8. }