public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-xfree@cygwin.com
Cc: fergus@bonhard.uklinux.net
Subject: Re: Updated: xorg-server-1.9.2-1
Date: Wed, 10 Nov 2010 16:25:00 -0000	[thread overview]
Message-ID: <4CDAC78F.1010402@dronecode.org.uk> (raw)
In-Reply-To: <4CD90E42.5000308@bonhard.uklinux.net>

On 09/11/2010 09:02, Fergus wrote:
>>> Fatal server error:
>>> Can't read lock file /tmp/.X0-lock
> 
>> Does /tmp/.X0-lock exists? Is it readable by you?
> 
> Yes.

Hmm. It's strange that the Xserver should choose to lie about that, then.

The code in question really does just say...

      lfd = open(LockFile, O_RDONLY);
      if (lfd < 0) {
        unlink(tmp);
        FatalError("Can't read lock file %s\n", LockFile);
      }

... so I can't see much room for unpredictability.

It would be helpful if you could strace XWin to see why it gets this wrong.

Have you tried manually removing the lock file /tmp/.X0-lock?

>> Are you sure /tmp is getting mounted successfully
>> where you expect it to be?
> 
> Yes.
> 
>> Have you tried '-nolock', as suggested by [1]
> 
> I hadn't then.
> But I have now and as a consequence everything is working perfectly.
> Thank you.
> 
> (Over time I have occasionally had to moderate the syntax of both "XWin" and
> "xterm" command lines to go from working to failing and back again to working.
> This is just another example. On an earlier occasion, the recommended use of
> -nolock failed. I am just happy when the current usage works. Thanks again.)

Well, I can't deny this might be your experience, but that's not how things
are supposed to work :-)

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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/


  reply	other threads:[~2010-11-10 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 11:51 Fergus
2010-11-08 14:06 ` Jon TURNEY
2010-11-09  9:12   ` Fergus
2010-11-10 16:25     ` Jon TURNEY [this message]
2010-11-08 17:34 ` Larry Hall (Cygwin X)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CDAC78F.1010402@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=fergus@bonhard.uklinux.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).