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 > _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx