Re: [Intel-gfx] [PATCH 4/4] backlight-helper: Simplify reading the level from stdin

2014-02-17 Thread Chris Wilson
On Mon, Feb 17, 2014 at 01:16:54PM +0100, Hans de Goede wrote: > Since the helper is a standalone app, the usual xserver rules of not using > stdio because of signal handling don't apply. > > And since the helper does run with elevated rights, it is important to keep > the code KISS so that it can

[Intel-gfx] [PATCH 4/4] backlight-helper: Simplify reading the level from stdin

2014-02-17 Thread Hans de Goede
Since the helper is a standalone app, the usual xserver rules of not using stdio because of signal handling don't apply. And since the helper does run with elevated rights, it is important to keep the code KISS so that it can be audited easily. This commit replaces the hard to read "raw" read loo