X Strike Force XFree86 SVN commit: r1507 - in trunk/debian: . local
Author: branden
Date: 2004-06-03 12:52:39 -0500 (Thu, 03 Jun 2004)
New Revision: 1507
Modified:
trunk/debian/CHANGESETS
trunk/debian/changelog
trunk/debian/local/Xsession
trunk/debian/local/Xsession.5
Log:
Modify Xsession to always append to the error file, closing a temporary
file race condition window if it has to fall back to using tempfile(1) to
create an X session error file. Because it always appends now, log the
fact that the session has started, the username, and the date to the X
session error file once it is successfully opened. Document this change
in behavior in Xsession(5).
Modified: trunk/debian/CHANGESETS
===================================================================
--- trunk/debian/CHANGESETS 2004-06-03 17:34:39 UTC (rev 1506)
+++ trunk/debian/CHANGESETS 2004-06-03 17:52:39 UTC (rev 1507)
@@ -58,4 +58,12 @@
xvfb-run's manual page.
1506
+Modify Xsession to always append to the error file, closing a temporary
+file race condition window if it has to fall back to using tempfile(1) to
+create an X session error file. Because it always appends now, log the
+fact that the session has started, the username, and the date to the X
+session error file once it is successfully opened. Document this change
+in behavior in Xsession(5).
+ 1507
+
vim:set ai et sts=4 sw=4 tw=80:
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-06-03 17:34:39 UTC (rev 1506)
+++ trunk/debian/changelog 2004-06-03 17:52:39 UTC (rev 1507)
@@ -66,8 +66,15 @@
not create it or remove it. Document these changes in behavior in
xvfb-run's manual page.
- -- Branden Robinson <branden@debian.org> Thu, 3 Jun 2004 12:30:25 -0500
+ * Modify Xsession to always append to the error file, closing a temporary
+ file race condition window if it has to fall back to using tempfile(1) to
+ create an X session error file. Because it always appends now, log the
+ fact that the session has started, the username, and the date to the X
+ session error file once it is successfully opened. Document this change
+ in behavior in Xsession(5).
+ -- Branden Robinson <branden@debian.org> Thu, 3 Jun 2004 12:48:08 -0500
+
xfree86 (4.3.0.dfsg.1-4) unstable; urgency=medium
* The "thanks for the 'testing'" release.
Modified: trunk/debian/local/Xsession
===================================================================
--- trunk/debian/local/Xsession 2004-06-03 17:34:39 UTC (rev 1506)
+++ trunk/debian/local/Xsession 2004-06-03 17:52:39 UTC (rev 1507)
@@ -91,8 +91,10 @@
errormsg "unable to create X session log/error file; aborting."
fi
-exec > "$ERRFILE" 2>&1
+exec >>"$ERRFILE" 2>&1
+echo "$PROGNAME: X session started for $LOGNAME at $(date)"
+
# sanity check; is our session script directory present?
if [ ! -d "$SYSSESSIONDIR" ]; then
errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
Modified: trunk/debian/local/Xsession.5
===================================================================
--- trunk/debian/local/Xsession.5 2004-06-03 17:34:39 UTC (rev 1506)
+++ trunk/debian/local/Xsession.5 2004-06-03 17:52:39 UTC (rev 1507)
@@ -17,7 +17,7 @@
.\" Suite 330, Boston, MA 02111-1307 USA
.\"
.\" $Id$
-.TH Xsession 5 "2003\-08\-21" "Debian GNU/Linux"
+.TH Xsession 5 "2004\-06\-03" "Debian GNU/Linux"
.SH NAME
Xsession \- initialize X session
.SH SYNOPSIS
@@ -110,10 +110,15 @@
.I Xsession
performs some housekeeping. It declares a set of built\-in functions (see
"BUILT\-IN SHELL FUNCTIONS" below) and variables, then attempts to create a
-log file for the X session. Historically this is called an "error" file,
-but it catches all sorts of diagnostic output from various X clients run in
-the user's session, not just error messages. If creation of an error file
-is impossible, the script (and thus the X session) aborts.
+log file for the X session, or append to an existing one. Historically
+this is called an "error" file, but it catches all sorts of diagnostic
+output from various X clients run in the user's session, not just error
+messages. If it is impossible to write to an error file, the script (and
+thus the X session) aborts. For convenience, once the error file is
+successfully opened,
+.I Xsession
+reports the fact that the session has started, the invoking username, and
+the date to the error file.
.PP
.I Xsession
next confirms that its script directory,
Reply to: