This allows powertop to be run non-interactively, e.g. from cron,
as requested by D. Ben Noble. Without this fix, it exits immediately.
Index: powertop.c
===================================================================
--- powertop.c (revision 317)
+++ powertop.c (working copy)
@@ -858,7 +858,8 @@
FD_ZERO(&rfds);
- FD_SET(0, &rfds);
+ if (!dump)
+ FD_SET(0, &rfds);
tv.tv_sec = ticktime;
tv.tv_usec = (ticktime - tv.tv_sec) * 1000000;;
do_proc_irq();
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power