From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Description of problem: When using the mii-tool -w (watch) option the output doesn't change until there is enough data in the standard output buffer. The expected bahaviour is immediate text ouput so that reading from stdout gives the actual network interface state. (More or less in real-time) A simple fflush(stdout) should do the job. Version-Release number of selected component (if applicable): net-tools-1.60-20.1 How reproducible: Always Steps to Reproduce: 1. /sbin/mii-tool -w > this_stays_empty.txt 2. 3. Actual Results: the file this_stays_empty.txt is empty Expected Results: we expect at least the current interface status immediatly after running the mii-tool. Additional info:
Created attachment 112453 [details] Patch adds a fflush(stdout) to mii-tool.
Thanks, the patch goes to devel branch - net-tools-1.60-51.