commit 1675531199d87bf7fa46767c58e0429fea1e072f
parent 5b93f7697641e64b6a12b7b1b21774778156afd7
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 28 Feb 2011 20:27:39 +0100
Preventing some senseless wakeups.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rfkilld.c b/rfkilld.c
@@ -152,7 +152,7 @@ main(int argc, char *argv[])
fds[0].fd = udev_monitor_get_fd(mon);
fds[0].events = POLLIN|POLLPRI;
while(running) {
- ret = poll(fds, 1, 500);
+ ret = poll(fds, 1, -1);
if (ret > 0) {
if ((fds[0].revents & POLLIN) \
|| (fds[0].revents & POLLPRI)) {