ignore SIGPIPE in glx test process

Change-Id: I31977f86290b4fd7e0869af85f5132ae7cd9d5fd
This commit is contained in:
Markus Mohrhard
2017-04-19 13:20:47 +02:00
parent 95b301a7d9
commit ceca7929df

View File

@@ -25,6 +25,7 @@
#include <fcntl.h>
#include "stdint.h"
#include <string.h>
#include <signal.h>
#include "opengl/x11/glxtest.hxx"
@@ -98,6 +99,7 @@ x_error_handler(Display *, XErrorEvent *ev)
void glxtest()
{
signal(SIGPIPE, SIG_IGN);
// we want to redirect to /dev/null stdout, stderr, and while we're at it,
// any PR logging file descriptors. To that effect, we redirect all positive
// file descriptors up to what open() returns here. In particular, 1 is stdout and 2 is stderr.