]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only call flush in pipe mode.
authorfabient <fabient@FreeBSD.org>
Wed, 17 Jan 2018 16:55:35 +0000 (16:55 +0000)
committerfabient <fabient@FreeBSD.org>
Wed, 17 Jan 2018 16:55:35 +0000 (16:55 +0000)
commit0b968fec5bb7aaee9b8331004659777f6c5c29db
treed2efb33b6434bafd3c39c1aff5b9506bbc6c6d97
parent326b96a88c3bffc46684685ed9bff3a0b716ab4c
Only call flush in pipe mode.
It fixes a crash with a socket in top mode.

Ex:
# pmcstat -R 127.0.0.1:8080 -T -w1
then
# pmcstat -n1 -Sclock.prof -Slock.failed -O 127.0.0.1:8080

MFC after: 1 week
Sponsored by: Stormshield
usr.sbin/pmcstat/pmcstat.c