Update fields names in example program (s/signo/ssi_signo/).

This commit is contained in:
Michael Kerrisk 2008-04-08 18:32:29 +00:00
parent 7d2c10f46f
commit d372f252fa
1 changed files with 2 additions and 2 deletions

View File

@ -374,9 +374,9 @@ main(int argc, char *argv[])
if (s != sizeof(struct signalfd_siginfo))
handle_error("read");
if (fdsi.signo == SIGINT) {
if (fdsi.ssi_signo == SIGINT) {
printf("Got SIGINT\\n");
} else if (fdsi.signo == SIGQUIT) {
} else if (fdsi.ssi_signo == SIGQUIT) {
printf("Got SIGQUIT\\n");
exit(EXIT_SUCCESS);
} else {