timer怎么停止?
struct itimerval timer;
timer.it_interval.tv_sec = 10;
timer.it_interval.tv_usec = 0;
timer.it_value.tv_sec = 1;
timer.it_value.tv_usec = 0;
setitimer(ITIMER_REAL, &timer, NULL);
signal(SIGALRM, alarm_handler);
我这么设置了一个timer,怎么在不关闭进程的条件下,关闭这个Timer
[解决办法]