diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-19 13:20:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 02:48:53 +0200 |
commit | 8a7668a586ab9815dc37352ff79b5e08a949d7ce (patch) | |
tree | 93f3c2fba71ff528ed44dcf111aa996680e1dd7e /vcl/unx/glxtest.cxx | |
parent | hard coding the number of entries just leads to problems (diff) | |
download | core-8a7668a586ab9815dc37352ff79b5e08a949d7ce.tar.gz core-8a7668a586ab9815dc37352ff79b5e08a949d7ce.zip |
ignore SIGPIPE in glx test process
Change-Id: I31977f86290b4fd7e0869af85f5132ae7cd9d5fd
Diffstat (limited to 'vcl/unx/glxtest.cxx')
-rw-r--r-- | vcl/unx/glxtest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/glxtest.cxx b/vcl/unx/glxtest.cxx index efe55910d164..383be628dfa9 100644 --- a/vcl/unx/glxtest.cxx +++ b/vcl/unx/glxtest.cxx @@ -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. |