c - select interrupted system call -
i creating timer runs approximately every second , waiting key pressed (which not doing). while running shows: select : interrupted system call select : interrupted system call select : interrupted system call select : interrupted system call can tell me why happening: struct sigaction s1; static timer_t tid3; sigfillset(&s1.sa_mask); s1.sa_flags = sa_siginfo; s1.sa_sigaction = signalhandler; if (sigaction(sigu, &s1, null) == -1) { perror("s1 failed"); exit( exit_failure ); } printf("\ntimer %d setting \n",timeridentity); tid3=settimer(sigu, 1000, 1); // ---------- set timer values ------------------- static struct sigevent sigev; static timer_t tid; static struct itimerspec itval; static struct itimerspec oitval; sigev.sigev_notify = sigev_signal; sigev.sigev_signo = signo; sigev.sigev_value.sival_ptr = &tid; if (timer_create(clock_realtime, &sigev, &tid) == 0) { itval.it_value.tv_sec = sec/1000; itval.it_va