mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <behlendorf1@llnl.gov> Closes #1568
This commit is contained in:
parent
a1d9543a39
commit
50fe577d1f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user