From 7a62437013baa68b1f7c09c152937f24c79d499d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 28 Sep 2009 14:42:03 +0200 Subject: [PATCH] xorg-server: - add patch from debian to log xorg error to stderr instead of launching terminal --- .../patches/168_glibc_trace_to_stderr.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/x11/xserver/xorg-server/patches/168_glibc_trace_to_stderr.diff diff --git a/packages/x11/xserver/xorg-server/patches/168_glibc_trace_to_stderr.diff b/packages/x11/xserver/xorg-server/patches/168_glibc_trace_to_stderr.diff new file mode 100644 index 0000000000..0132229dd7 --- /dev/null +++ b/packages/x11/xserver/xorg-server/patches/168_glibc_trace_to_stderr.diff @@ -0,0 +1,18 @@ +Index: xorg-server-1.6.0/hw/xfree86/common/xf86Init.c +=================================================================== +--- xorg-server-1.6.0.orig/hw/xfree86/common/xf86Init.c 2009-03-19 23:19:45.000000000 -0700 ++++ xorg-server-1.6.0/hw/xfree86/common/xf86Init.c 2009-03-19 23:23:22.000000000 -0700 +@@ -1345,8 +1345,12 @@ + signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */ + #endif + +- if (!beenHere) ++ if (!beenHere) { ++ /* have glibc report internal abort traces to stderr instead of ++ the controlling terminal */ ++ setenv("LIBC_FATAL_STDERR_","1",0); + xf86LogInit(); ++ } + + /* Set stderr to non-blocking. */ + #ifndef O_NONBLOCK