fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. int i;
  6.  
  7. for (i = 0; i < 2; i ++) {
  8. int pd= fork();
  9. printf (".\n");
  10. if (pd) wait (0);
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
.
.
.
.
.
.
.
.