rfkill

Martin Dubuc martind1111 at gmail.com
Wed Nov 4 16:35:51 UTC 2009


Addition of a working version of rfkill in Fedora 12 has been really
welcomed. In my application, I would like to monitor the RF kill switch to
detect when user enables/disables Wi-Fi on the system. I thought I could use
the rfkill executable to do this, using "rfkill event", piping the output
using popen in my process. However, rfkill outputs the events on standard
output, but does not flush every time it reports an event. When I perform
fgets to get the events, I get nothing. I am wondering if it would be
possible to add a fflush on stdout when events are reported on stdout inside
rfkill.

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20091104/dd17c511/attachment.html 


More information about the devel mailing list