[Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Wed May 10 12:30:59 UTC 2017
On 10.05.2017 15:14, Petri Latvala wrote:
> On Wed, May 10, 2017 at 03:10:16PM +0300, Abdiel Janulgue wrote:
>> In case the stream output is more than the pipe buf, the read loop above
>> would just unblock the rest of the entries. From pipe(2) page:
>
>
> But you don't reach that read loop until system() returns. Which
> happens after the program has terminated. Which never happens.
>
Experimented with setting the write end of the pipe as O_NONBLOCK, I
actually didn't notice any difference when dumping tons of stdout
compared with just setting only the read end.
Maybe it's because we are not using write() directly? Not sure if this
is expected behavior or not...
>
>
> --
> Petri Latvala
>
More information about the Intel-gfx
mailing list