[lkml]   [2019]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectperf top --stdio, glibc 2.28, stdio EOF sticky

"perf top --stdio" (or perf kvm top --stdio) keyboard handling does not
work properly for me. Instead of accepting key presses, it just
displays the "Mapped keys:" help output always.

Seems to be related to this glibc 2.28 stdio change:;a=blob;f=NEWS

* All stdio functions now treat end-of-file as a sticky condition. If
read from a file until EOF, and then the file is enlarged by another
process, you must call clearerr or another function with the same
(e.g. fseek, rewind) before you can read the additional data. This
corrects a longstanding C99 conformance bug. It is most likely to
programs that use stdio to read interactive input from a terminal.
(Bug #1190.)

Also "perf top </dev/null" with or without --stdio does not behave very
well either...


 \ /
  Last update: 2019-06-06 08:56    [W:0.034 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site