problem with powertop in -d (dump) mode
Morten Thunberg Svendsen
morten at montun.dk
Wed Jan 23 11:49:18 PST 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1132 bytes
Desc: not available
Url : http://www.bughost.org/pipermail/power/attachments/20080123/7c6175fb/attachment.obj
More information about the Power
mailing list