[so] tema 5 linux probleme cu timer
dragos barbulescu
barbulescu_dragos at yahoo.com
Thu Feb 1 01:00:29 EET 2007
Salut,
Am nevoie la tema 5 sa folosesc un timer care sa imi dea un semnal de alarma. L-am implementat dar cand l-am uploadat pe site am vazut ca imi da o eroare de Alarm in
/bin/sh: line 1: 2333 Alarm clock ./test
Si am testat iar tema la mine. Am avut surpriza sa constat ca daca sunt logat pe root imi merge dar cand sunt
pe alt user imi da aceeasi eroare sau se blocheaza
Iata cum am folosit timerul:
//initialise counter
lru_timer.it_value.tv_sec = 0;
lru_timer.it_value.tv_usec = TIMER_PERIOD;
lru_timer.it_interval.tv_sec = 0;
lru_timer.it_interval.tv_usec = TIMER_PERIOD;
//start timer
setitimer(ITIMER_REAL, &lru_timer, NULL);
Astept orice fel de sfat
mersi
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
More information about the so
mailing list