Follow up the kernel signal-related change in:

examples/oneshot/oneshot_main.c:
  examples/alarm/alarm_main.c:
  examples/ajoystick/ajoy_main.c
  examples/djoystick/djoy_main.c
  examples/buttons/buttons_main.c
  examples/zerocross/zerocross_main.c
  graphics/traveler/src/trv_input.c
  graphics/ft80x/
This commit is contained in:
Xiang Xiao 2019-01-27 09:48:29 -06:00 committed by Gregory Nutt
parent 2771205bc3
commit ff54c47e64
10 changed files with 38 additions and 18 deletions

View file

@ -209,9 +209,11 @@ int timer_main(int argc, char *argv[])
printf("Attach timer handler\n");
notify.arg = NULL;
notify.pid = getpid();
notify.signo = CONFIG_EXAMPLES_TIMER_SIGNO;
notify.event.sigev_notify = SIGEV_SIGNAL;
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_SIGNO;
notify.event.sigev_value.sival_ptr = NULL;
ret = ioctl(fd, TCIOC_NOTIFICATION, (unsigned long)((uintptr_t)&notify));
if (ret < 0)