일정시간 경과 후 시그널을 보낼수는 없나요?

vhfpss의 이미지

연속적으로 일정시간이(보통 2초) 지나면 신호를 발생할수는 없나요?
alarm()함수를 사용했는데 이 함수는 한번밖엔 SIGALRM 신호를 안보내더군요.
대략 2초정도의 딜레이를 두고서 매 초마다 SIGALRM과 같은 신호를 보낼수는 없나요?

많은 고수분들의 조언을 기다리며...^^;;

ssehoony의 이미지

Quote:
NAME
getitimer, setitimer - get or set value of an interval timer

SYNOPSIS
#include <sys/time.h>

int getitimer(int which, struct itimerval *value);
int setitimer(int which, const struct itimerval *value, struct itimer-
val *ovalue);

DESCRIPTION
The system provides each process with three interval timers, each
decrementing in a distinct time domain. When any timer expires, a sig-
nal is sent to the process, and the timer (potentially) restarts.

이런게 필요하신건가요?