Couldn't you do `struct sigaction sa = { .sa_flags = SA_RESETHAND };` ?