This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: Xwindows won't start (Can't read lock file)


Jon TURNEY wrote:
> James Ertle wrote:
>> Fatal server error:
>> Can't read lock file /tmp/.X0-lock
> 
> As a workaround, you should be able to add "-nolock" to the command line used
> to start Xwin (in startxwin.bat, I'm guessing, in your case).
> 
> Since a few people seem to have this problem, I'd like to get a resolution.

Yaakov,

Ok, my archaeological investigations in this area have revealed that this
locking code probably wasn't enabled in 6.8.99.  I don't think it is actually
giving any benefit, since we also have a native named mutex is used in the DDX
code to prevent multiple servers with the same display number, before that
locking code is entered.

So, it might be expedient to disable this locking code for now, since it seems
to be generating problems. Attached is a quick patch to do that.

Note that SERVER_LOCK as a configuration has been removed in X.Org git master,
making the patch to turn it off larger, so we might well have to cross this
bridge again at a later date...
Cygwin has a per-display mutex, so the lockfile in /tmp doesn't win us anything (and seems to cause problems)

---
 xserver/configure.ac |    1 -
 1 file changed, 1 deletion(-)

Index: xorg-server-1.5.3/xserver/configure.ac
===================================================================
--- xorg-server-1.5.3.orig/xserver/configure.ac
+++ xorg-server-1.5.3/xserver/configure.ac
@@ -1086,7 +1086,6 @@ AC_SUBST([VENDOR_RELEASE])
 AC_SUBST([VENDOR_MAN_VERSION])
 
 AC_DEFINE(DDXOSINIT, 1, [Use OsVendorInit])
-AC_DEFINE(SERVER_LOCK, 1, [Use a lock to prevent multiple servers on a display])
 AC_DEFINE(SMART_SCHEDULE, 1, [Include time-based scheduler])
 AC_DEFINE(NO_LIBCWRAPPER, 1, [Define to 1 if modules should avoid the libcwrapper])
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]