7 moi
public text v1 · immutable#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/times.h>
#include <time.h>
void traite()
{
}
int main(int argve,char *argv[])
{
int e_iExec;
int e_iOpen;
int e_iFo;
int e_iTemp;
struct tms t;
clock_t ls;
e_iFo = fork();
if(e_iFo == 0)
{
sleep(60);
}
else
{
while(1)
{
traite();
sleep(1);
}
waitpid(e_iFo, &e_iTemp, 0);
}
return 0;
}