[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rfkill



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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]