mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +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);
|
zpool_do_events_nvprint(nvl, 8);
|
||||||
printf(gettext("\n"));
|
printf(gettext("\n"));
|
||||||
}
|
}
|
||||||
|
(void) fflush(stdout);
|
||||||
|
|
||||||
nvlist_free(nvl);
|
nvlist_free(nvl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user