chiark / gitweb /
udevd: clarify worker exit status
[elogind.git] / libudev / test-libudev.c
index 9dc86bd918aed2cdaba6216ecdb18f5e6d59fc49..4192ba14b24db7f65b98b3f0d7357704811a884a 100644 (file)
@@ -286,9 +286,7 @@ static int test_monitor(struct udev *udev)
                                }
                                print_device(device);
                                udev_device_unref(device);
-                       }
-
-                       if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) {
+                       } else if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) {
                                printf("exiting loop\n");
                                goto out;
                        }