All pastes #216830 Raw Edit

7 moi

public text v1 · immutable
#216830 ·published 2006-10-23 09:33 UTC
rendered paste body
#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;
}