static void sigterm_callback() { uint64_t x; if (read(sigterm_eventfd, &x, sizeof(x)) < 0) { /* silence warn_unused_result */ } ind_soc_run_status_set(IND_SOC_RUN_STATUS_EXIT); }
static void sigterm_callback(int socket_id, void *cookie, int read_ready, int write_ready, int error_seen) { uint64_t x; if (read(sigterm_eventfd, &x, sizeof(x)) < 0) { /* silence warn_unused_result */ } ind_soc_run_status_set(IND_SOC_RUN_STATUS_EXIT); }