On Sat, Oct 23, 2010 at 02:00:38PM +0200, Jiri Slaby wrote:
FVO "fix" equal to "revert". Belated review:
a) global variable depending on stdin of the last opener? Affecting
output of read(2)? Really?
b) iterator is broken; list should be locked in ->start(), unlocked
in ->stop() and *NOT* unlocked/relocked in ->next()
c) ->show() ought to do nothing in case of ->device == NULL, instead
of skipping those in ->next()/->start()
d) regardless of the merits of the bright idea about asterisk at that
line in output *and* regardless of (a), the implementation is not only
atrociously ugly, it's actually very likely to be a roothole. Verifying
that Cthulhu knows what number happens to be address of a tty_struct by
blindly dereferencing memory at that address... Ouch.
Please revert that crap.
--