25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
145 B

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. int main() {
  5. pid_t p = fork();
  6. if (p == 0) {
  7. exit(0);
  8. } else {
  9. sleep(2);
  10. }
  11. }