Advertisement
m1o2

m1o2, elsf, fxp, fork, unix, aviv ex

Apr 13th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3.  
  4. #define OK 0
  5.  
  6.  
  7. int main( int length, char *params ){
  8.  
  9. int pid = fork() && fork();
  10.  
  11.     if( !pid )
  12.         printf("A\n");
  13.     else
  14.         printf("B\n");
  15.  
  16. return OK;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement