From: Craig Loomis Date: Fri, 5 Jul 2013 14:51:36 +0000 (-0400) Subject: Explicitly flush output at end of each zevent X-Git-Tag: zfs-0.6.2~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50fe577d1f3bd06e15fe2006459debd9fdffd04a;p=zfs 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 Closes #1568 --- 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); }