diff options
author | Branden Robinson <branden@debian.org> | 2009-07-17 22:41:31 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-07-17 22:41:31 -0700 |
commit | 2d6d2f121bffb378676f422b44d37534c8c5d53b (patch) | |
tree | 5d9861eddb793861dc2b810bcb45e718dcf2fd02 | |
parent | 72240433a85410e68a3b6705e097337ff985ae90 (diff) |
Add some more log and debug messages
Add log messages for xdm startup, shutdown, and normal exit. Add a
debugging message when xdm enters its main loop.
-rw-r--r-- | dm.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -157,6 +157,8 @@ main (int argc, char **argv) exit (1); } + LogInfo ("Starting\n"); + if (nofork_session == 0) { /* Clean up any old Authorization files */ /* AUD: all good? */ @@ -196,6 +198,7 @@ main (int argc, char **argv) #ifndef UNRELIABLE_SIGNALS (void) Signal (SIGCHLD, ChildNotify); #endif + Debug ("startup successful; entering main loop\n"); while ( #ifdef XDMCP AnyWellKnownSockets() || @@ -214,6 +217,7 @@ main (int argc, char **argv) #endif } Debug ("Nothing left to do, exiting\n"); + LogInfo ("Exiting\n"); exit(0); /*NOTREACHED*/ } @@ -384,6 +388,7 @@ StopAll (int n) return; } Debug ("Shutting down entire manager\n"); + LogInfo ("Shutting down\n"); #ifdef XDMCP DestroyWellKnownSockets (); #endif @@ -694,6 +699,7 @@ StartDisplay (struct display *d) pid_t pid; Debug ("StartDisplay %s\n", d->name); + LogInfo ("Starting X server on %s\n", d->name); LoadServerResources (d); if (d->displayType.location == Local) { |