mirror of https://github.com/mkerrisk/man-pages
Update fields names in example program (s/signo/ssi_signo/).
This commit is contained in:
parent
7d2c10f46f
commit
d372f252fa
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue