Bug 152568 - mii-tool std output isn't flushed in watch mode
Summary: mii-tool std output isn't flushed in watch mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: 1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-30 14:06 UTC by Christiaan Simons
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-04-05 09:36:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch adds a fflush(stdout) to mii-tool. (345 bytes, patch)
2005-03-30 14:10 UTC, Christiaan Simons
no flags Details | Diff

Description Christiaan Simons 2005-03-30 14:06:02 UTC
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:

Comment 1 Christiaan Simons 2005-03-30 14:10:52 UTC
Created attachment 112453 [details]
Patch adds a fflush(stdout) to mii-tool.

Comment 2 Radek Vokál 2005-04-05 09:36:16 UTC
Thanks, the patch goes to devel branch - net-tools-1.60-51. 


Note You need to log in before you can comment on or make changes to this bug.