Preventing some senseless wakeups. - rfkilld - An rfkill daemon, which runs scripts according to rfkill events.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 1675531199d87bf7fa46767c58e0429fea1e072f
(DIR) parent 5b93f7697641e64b6a12b7b1b21774778156afd7
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 28 Feb 2011 20:27:39 +0100
Preventing some senseless wakeups.
Diffstat:
rfkilld.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) 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)) {