[igt-dev] [PATCH i-g-t v2 0/1] tests/prime_vgem: Fix broken handling of interprocess pipes
Janusz Krzysztofik
janusz.krzysztofik at linux.intel.com
Thu Jul 11 10:49:12 UTC 2019
Hi Simon,
On Thursday, July 11, 2019 12:39:51 PM CEST Ser, Simon wrote:
> On Thu, 2019-07-11 at 10:39 +0200, Janusz Krzysztofik wrote:
> > If a child process dies for any reason while basic-fence-read or
> > basic-fence-mmap subtest is run, the subtest may hang indefinitely on
> > read() from a pipe which is supposed to be written to by that child
> > (can
> > be interrupted though). Fix it by first closing unused pipe ends on
> > both
> > parent and child side before using the pipe, as recommended by
> > pipe(2)
> > manual page.
> >
> > Please note that due to the IGT library way of handling signals, now
> > the
> > subtests may fail with error code 141 (128 + SIGPIPE) and no usual
> > DEBUG
> > message block on stderr nor FAIL message line on stdout, however some
> > meaningful error messages will still be printed on stderr by the
> > failing
> > child processes.
> >
> > v2: resend with Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> > added
>
> You generally don't need to resend a patch just to add a R-b tag.
>
> Do you have IGT commit rights?
I don't think I have.
Thanks,
Janusz
>
> > Janusz Krzysztofik (1):
> > tests/prime_vgem: Fix broken handling of interprocess pipes
> >
> > tests/prime_vgem.c | 12 ++++++++----
> > 1 file changed, 8 insertions(+), 4 deletions(-)
> >
>
More information about the igt-dev
mailing list