summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-03-10 22:13:50 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-03-10 22:13:50 +0000
commit7358c629f3019978d51a968d32aa67e246bab9b7 (patch)
treec74eabe90ec0ecebc0aeadc3e75a2f510bda2628 /common
parentf65de5585fde23b76fd9439718ce8f6349919901 (diff)
downloadgdm-7358c629f3019978d51a968d32aa67e246bab9b7.tar.gz
Log pid too. Only do perror if available.
2008-03-10 William Jon McCann <jmccann@redhat.com> * common/gdm-crash-logger.c: (main): Log pid too. Only do perror if available. svn path=/trunk/; revision=5989
Diffstat (limited to 'common')
-rw-r--r--common/gdm-crash-logger.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/gdm-crash-logger.c b/common/gdm-crash-logger.c
index c84f45e6..62314a52 100644
--- a/common/gdm-crash-logger.c
+++ b/common/gdm-crash-logger.c
@@ -40,6 +40,7 @@ int main (int argc, char ** argv)
gboolean res;
gboolean done;
GError *error;
+ int options;
char * args[] = { "gdb",
"--batch",
"--quiet",
@@ -67,7 +68,12 @@ int main (int argc, char ** argv)
exit (1);
}
- openlog ("gdm", LOG_CONS | LOG_PERROR, LOG_DAEMON);
+ options = LOG_PID | LOG_CONS;
+#ifdef LOG_PERROR
+ options |= LOG_PERROR;
+#endif
+
+ openlog ("gdm", options, LOG_DAEMON);
syslog (LOG_CRIT, "******************* START **********************************");
done = FALSE;
while (!done) {