Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 1998 10:43:32 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/7366: /tmp/.X* not removed by /etc/rc if clear_tmp_enable != YES
Message-ID:  <199807221443.KAA00383@lakes.dignus.com>

next in thread | raw e-mail | index | archive | help

>Number:         7366
>Category:       conf
>Synopsis:       /tmp/.X* not removed by /etc/rc if clear_tmp_enable != YES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 22 07:40:01 PDT 1998
>Last-Modified:
>Originator:     Thomas David Rivers
>Organization:
Dignus LLC
>Release:        FreeBSD 2.2.6-RELEASE i386
>Environment:


	2.2.6 - X11.

>Description:
	if clear_tmp_enable is YES, then /etc/rc kindly removes
	  /tmp/.X*-lock and /tmp/.X11-unix/*

	But - if clea_tmp_enable isn't yes; then these don't get
	removed; causing X11 startup to fail on reboot.

>How-To-Repeat:


>Fix:
	
 	I suggest the following diff to /etc/rc; which always removes
	those files.   It's arguable that if the user didn't set
	clear_tmp_enable to YES; he indicates he wants these files;
	but I don't believe the intent of clear_tmp_enable includes
	preventing X11 from restarting...
	

	[The best fix would likely be to get XFree86 to place the
	files in /var/run.]

	This is a context diff to /etc/rc:
*** rc.ori	Tue Mar 24 20:56:48 1998
--- rc	Wed Jul 22 10:42:09 1998
***************
*** 131,136 ****
--- 131,139 ----
  rm -f /etc/nologin
  rm -f /var/spool/lock/*
  rm -rf /var/spool/uucp/.Temp/*
+ # Also remove X lock files since it will prevent you from
+ # restarting X11 after a system crash.
+ rm -f /tmp/.X*-lock /tmp/.X11-unix/*
  (cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
  
  #
***************
*** 149,157 ****
  	(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
  	    find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)
  
- 	# Also remove X lock files since it will prevent you from
- 	# restarting X11 after a system crash.
- 	rm -f /tmp/.X*-lock /tmp/.X11-unix/*
  fi
  
  # snapshot any kernel -c changes back to disk
--- 152,157 ----


>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807221443.KAA00383>