Hi, I had a problem with powertop run with the -d switch. When no tty was connected to stdin the select call used in powertop.c would return immediately instead of waiting for keypress or timeout.
The solution I made was to check for a connected tty on stdin (filhandle 0) and just sleep if no tty is detected. To reproduce this bug one can run powertop like this: $ powertop -d -t 15 < /dev/null
patch
Description: Binary data
_______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
