noop-renderer: Read the shm buffer contents on attach
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Fri, 7 Feb 2014 08:34:45 +0000 (09:34 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Feb 2014 21:49:21 +0000 (13:49 -0800)
commit2a67902c8fcdfa317f02998dfbb9966a83913206
tree9eb2355c959d93b7276c18403721a44371cf3dd4
parent2c87d9429e3376045c913aaa54aab12a9bf6060e
noop-renderer: Read the shm buffer contents on attach

The noop-renderer doesn't read buffer contents, which means bad
buffers go undetected. Thus, read the buffer contents just for
the purpose of triggering SIGBUS (and having the client killed).

Fixes the bad-buffer test when run against the headless backend.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
src/noop-renderer.c