initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int pid;
|
||||
pid = fork();
|
||||
if (pid == 0)
|
||||
{for(;;)
|
||||
printf ("je suis le fils\n");
|
||||
}
|
||||
else
|
||||
{for(;;)
|
||||
printf("je suis le père\n");
|
||||
}
|
||||
return(EXIT_SUCCESS);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int pid;
|
||||
pid = fork();
|
||||
if (pid == 0)
|
||||
{for(;;)
|
||||
printf ("je suis le fils\n");
|
||||
}
|
||||
else
|
||||
{for(;;)
|
||||
printf("je suis le père\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user