File: 05_Revert-Unload-submodules.diff

package info (click to toggle)
xorg-server 2%3A1.19.2-1%2Bdeb9u5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 41,820 kB
  • sloc: ansic: 372,380; xml: 18,082; makefile: 3,482; objc: 3,470; sh: 813; python: 514; yacc: 483; cpp: 479; lex: 281; asm: 214; awk: 52; perl: 5
file content (28 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 272537ae14a04911fcf2fec51492fa0f91c4a676 Mon Sep 17 00:00:00 2001
From: Julien Cristau <jcristau@debian.org>
Date: Wed, 29 Aug 2012 20:16:40 +0200
Subject: [PATCH] Revert "Unload submodules."

This reverts commit 0d4bb5442ceb8e8e4a8de6cfc4203cae469eee72.

This doesn't seem to work quite well.  See Debian bug#686152.
---
 hw/xfree86/common/xf86Helper.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/hw/xfree86/common/xf86Helper.c
+++ b/hw/xfree86/common/xf86Helper.c
@@ -1625,7 +1625,13 @@ xf86LoadOneModule(const char *name, void
 void
 xf86UnloadSubModule(void *mod)
 {
+    /*
+     * This is disabled for now.  The loader isn't smart enough yet to undo
+     * relocations.
+     */
+#if 0
     UnloadSubModule(mod);
+#endif
 }
 
 Bool