diff options
author | Craig Loomis <[email protected]> | 2013-07-05 10:51:36 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-07-08 17:01:16 -0700 |
commit | 50fe577d1f3bd06e15fe2006459debd9fdffd04a (patch) | |
tree | b19377621a2069ba8dce5c2d4abced1c766f1b44 /cmd/zpool | |
parent | a1d9543a39942be56879ca9338078afc77c25cea (diff) |
Explicitly flush output at end of each zevent
For "zpool events -f" flush stdout to ensure the last zevent
is always printed immediately.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1568
Diffstat (limited to 'cmd/zpool')
-rw-r--r-- | cmd/zpool/zpool_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 37aa2894d..19f1f28a9 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -5243,6 +5243,7 @@ zpool_do_events_next(ev_opts_t *opts) zpool_do_events_nvprint(nvl, 8); printf(gettext("\n")); } + (void) fflush(stdout); nvlist_free(nvl); } |