Imported Debian patch 2:1.15.1-0ubuntu2.6
[deb_xorg-server.git] / debian / patches / 168_glibc_trace_to_stderr.patch
diff --git a/debian/patches/168_glibc_trace_to_stderr.patch b/debian/patches/168_glibc_trace_to_stderr.patch
new file mode 100644 (file)
index 0000000..4020d88
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
+index 0974893..797f054 100644
+--- a/hw/xfree86/common/xf86Init.c
++++ b/hw/xfree86/common/xf86Init.c
+@@ -938,6 +938,9 @@ OsVendorInit(void)
+     if (!beenHere) {
+         umask(022);
++        /* have glibc report internal abort traces to stderr instead of
++           the controlling terminal */
++        setenv("LIBC_FATAL_STDERR_", "1", 0);
+         xf86LogInit();
+     }