HomeFreeBSD

Only call flush in pipe mode.

Description

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

Details

Provenance
fabientAuthored on
Parents
rS328087: Fix pmcstat exit from kernel introduced by r325275.
Branches
Unknown
Tags
Unknown