Re: [PATCH 1/2] selftests: Remove forced unbuffering for test running

2019-05-21 Thread shuah
On 5/20/19 11:21 PM, Takashi Iwai wrote: On Tue, 21 May 2019 00:37:48 +0200, Kees Cook wrote: As it turns out, the "stdbuf" command will actually force all subprocesses into unbuffered output, and some implementations of "echo" turn into single-character writes, which utterly wrecks writes to

Re: [PATCH 1/2] selftests: Remove forced unbuffering for test running

2019-05-20 Thread Takashi Iwai
On Tue, 21 May 2019 00:37:48 +0200, Kees Cook wrote: > > As it turns out, the "stdbuf" command will actually force all > subprocesses into unbuffered output, and some implementations of "echo" > turn into single-character writes, which utterly wrecks writes to /sys > and /proc files. > >

[PATCH 1/2] selftests: Remove forced unbuffering for test running

2019-05-20 Thread Kees Cook
As it turns out, the "stdbuf" command will actually force all subprocesses into unbuffered output, and some implementations of "echo" turn into single-character writes, which utterly wrecks writes to /sys and /proc files. Instead, drop the "stdbuf" usage, and for any tests that want explicit