[Intel-gfx] [i-g-t PATCH v2 1/4] lib/igt_core: Add igt_exec helpers

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Tue May 30 10:31:46 UTC 2017



On 29.05.2017 16:01, Chris Wilson wrote:
> On Mon, May 29, 2017 at 03:08:07PM +0300, Abdiel Janulgue wrote:
>> Support executing external processes with the goal of capturing its
>> standard streams to the igt logging infrastructure in addition to its
>> exit status.
> 
> This is not an exec wrapper. This is a system() replacement. That it
> invokes shell to evaluate the cmd should be front and centre.
> -Chris
> 

The problem with system() is that it waits until the process is
completed. If the process' output is more than PIPE_BUF, it'll block. Do
you have any suggestions?


More information about the Intel-gfx mailing list