mirror of https://github.com/mkerrisk/man-pages
fanotify.7: Add some whitespace to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e1ca5880d4
commit
370359a7c6
|
@ -649,6 +649,7 @@ main(int argc, char *argv[])
|
|||
/* This is the loop to wait for incoming events */
|
||||
|
||||
printf("Listening for events.\\n");
|
||||
|
||||
while (1) {
|
||||
poll_num = poll(fds, nfds, \-1);
|
||||
if (poll_num == \-1) {
|
||||
|
@ -658,6 +659,7 @@ main(int argc, char *argv[])
|
|||
perror("poll"); /* Unexpected error */
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (poll_num > 0) {
|
||||
if (fds[0].revents & POLLIN) {
|
||||
|
||||
|
@ -667,6 +669,7 @@ main(int argc, char *argv[])
|
|||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (fds[1].revents & POLLIN) {
|
||||
|
||||
/* Fanotify events are available */
|
||||
|
|
Loading…
Reference in New Issue