~ubuntu-branches/ubuntu/precise/xdm/precise

« back to all changes in this revision

Viewing changes to debian/patches/07_xdm_more_debug.diff

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2011-01-30 00:53:09 UTC
  • mfrom: (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110130005309-30mjjyk7div7d494
Tags: 1:1.1.10-3ubuntu1
* Merge from debian unstable.  Remaining changes: (LP: #682196)
  - debian/{rules, xdm.install, local/ubuntu*}:
    + Add Ubuntu graphics and configure xdm to use them by default.
  - debian/patches/ubuntu_no_whiteglass.diff: Don't hardcode
    the default Xcursor theme to whiteglass. Use the Ubuntu
    default x-cursor-theme instead.
* debian/patches/ftbfs_binutils-gold.diff: Fix FTBFS with binutils-gold
  and ld --as-needed. (Closes: #556694)
* Dropped changes, no longer applicable:
  - debian/{xdm.postinst.in, xdm.postrm.in, xdm.preinst.in}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: Branden Robinson <branden@debian.org>
2
 
Subject: [PATCH] Add some more log and debug messages
3
 
 
4
 
Add log messages for xdm startup, shutdown, and normal exit.  Add a
5
 
debugging message when xdm enters its main loop.
6
 
---
7
 
 dm.c |    6 ++++++
8
 
 1 files changed, 6 insertions(+), 0 deletions(-)
9
 
 
10
 
Index: xdm/dm.c
11
 
===================================================================
12
 
--- xdm.orig/dm.c
13
 
+++ xdm/dm.c
14
 
@@ -160,6 +160,8 @@
15
 
        exit (1);
16
 
     }
17
 
 
18
 
+    LogInfo ("Starting\n");
19
 
+
20
 
     if (nofork_session == 0) {
21
 
        /* Clean up any old Authorization files */
22
 
        /* AUD: all good? */
23
 
@@ -199,6 +201,7 @@
24
 
 #ifndef UNRELIABLE_SIGNALS
25
 
     (void) Signal (SIGCHLD, ChildNotify);
26
 
 #endif
27
 
+    Debug ("startup successful; entering main loop\n");
28
 
     while (
29
 
 #ifdef XDMCP
30
 
           AnyWellKnownSockets() ||
31
 
@@ -217,6 +220,7 @@
32
 
 #endif
33
 
     }
34
 
     Debug ("Nothing left to do, exiting\n");
35
 
+    LogInfo ("Exiting\n");
36
 
     exit(0);
37
 
     /*NOTREACHED*/
38
 
 }
39
 
@@ -387,6 +391,7 @@
40
 
        return;
41
 
     }
42
 
     Debug ("Shutting down entire manager\n");
43
 
+    LogInfo ("Shutting down\n");
44
 
 #ifdef XDMCP
45
 
     DestroyWellKnownSockets ();
46
 
 #endif
47
 
@@ -711,6 +716,7 @@
48
 
     pid_t      pid;
49
 
 
50
 
     Debug ("StartDisplay %s\n", d->name);
51
 
+    LogInfo ("Starting X server on %s\n", d->name);
52
 
     LoadServerResources (d);
53
 
     if (d->displayType.location == Local)
54
 
     {