This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Files in /tmp/.X11-unix not getting cleaned up..
- From: Alexander Gottwald <Alexander dot Gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 3 Nov 2004 00:27:07 +0100 (MET)
- Subject: Re: Files in /tmp/.X11-unix not getting cleaned up..
- References: <9616BFC95C867443854DA22AA36F746BAAFED2@jobcorps.org>
- Reply-to: cygwin-xfree at cygwin dot com
David Suarez wrote:
>
>
> I have setup Cygwin/X on Windows Terminal Services and have been running it using the approach that each new user gets there own port.?
>
> Everything runs dandy except under some circumstance it appears the socket/file in the /tmp/.X11-unix/ directory is not cleaned up when X is closed.? In those cases, on startup for a non-admin rights user, they receive a fatal error.? To fix all I do is go into the directory and delete the offending file (I confirm that there is no X server on that port first).? Since the work-around "works", I attempted to add that to the script the user's kick off to delete the hanging file if it's there.? Unfortunately since this only happens if the previous user of that port was different, a permission error occurs.
this a quite often asked question. You could solve this with per-user mounted
/tmp directory. eg.
mkdir $HOME/tmp
mount -buf $(cygpath -m $HOME/tmp) /tmp
This will create a temp directory in the users home directory and map /tmp
to that directory.
bye
ago
NP: Megadump - Superhuman
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723