D | sd-event.c | 3068 struct itimerspec its = {}; in event_arm_timer() local 3091 if (timerfd_settime(d->fd, TFD_TIMER_ABSTIME, &its, NULL) < 0) in event_arm_timer() 3110 its.it_value.tv_sec = 0; in event_arm_timer() 3111 its.it_value.tv_nsec = 1; in event_arm_timer() 3113 timespec_store(&its.it_value, t); in event_arm_timer() 3115 if (timerfd_settime(d->fd, TFD_TIMER_ABSTIME, &its, NULL) < 0) in event_arm_timer() 3772 struct itimerspec its = {}; in arm_watchdog() local 3782 timespec_store(&its.it_value, t); in arm_watchdog() 3786 if (its.it_value.tv_sec == 0 && its.it_value.tv_nsec == 0) in arm_watchdog() 3787 its.it_value.tv_nsec = 1; in arm_watchdog() [all …]
|