unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stenuit, Pascal" <Pascal.Stenuit@GTECH.COM>
Subject: Re: Cannot connect to X server
Date: Wed, 10 Dec 2003 06:39:09 -0500	[thread overview]
Message-ID: <8994A66FFE9ED411BD200008C75D64FD4BD481@belmail02.mis.gtech.com> (raw)

Hello,

We've been experiencing the same problem as the one described here below. 

Running truss on emacs showed the TCP connect to the X server being
interrupted (EINTR).
The reason for the interrupt is the keyboard timer running at that time.
The XtOpenDisplay retries the connect a few times and then gives up.

The problem happens reliably only on slow links.

We suspect that the behaviour of connect was changed between 4.2 and 5.0
(EINTR is not listed as valid error code in 4.2 - I dont have the man pages
for 5.x), but the X libraries were not adapted to take EINTR.

As a quick and dirty hack, we've blocked SIGALRM just around the call to
XOpenDisplay and XtOpenDisplay and the problem went away. We didnt log a
call to IBM, though.

In the hope this can be useful to somebody else...

rgds,
pascal

stenuit pascal, gtech, Terhulpsesteenweg 6d, B-1560 Hoeilaart
Bus: +32 2 678.13.73
Mobile: +32 4 78.88.17.08
Bus Fax: +32 2 678.13.45


----------------------------------------------------------------------------
----
From:  Richard Stallman 
Subject:  Re: Cannot connect to X server 
Date:  Fri, 30 May 2003 13:12:56 -0400 

----------------------------------------------------------------------------
----

    When I invoke emacs on AIX 5.1 it gives me the following error message.

    emacs: Cannot connect to X server hollowman:0.0.
    Check the DISPLAY environment variable or use `-d'.
    Also use the `xhost' program to verify that it is set to permit
    connections from your machine.

Did you verify that the X server on hollowman allows connections from
the machine where Emacs is running?  The fix could be as simple as
running xhost.

If the problem is not that, then I don't know what to do.
I hope someone finds a solution and tells the Emacs developers.





-----------------------------------------
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.  Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof.

             reply	other threads:[~2003-12-10 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 11:39 Stenuit, Pascal [this message]
2003-12-11 14:47 ` Cannot connect to X server Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 15:20 Stenuit, Pascal
     [not found] <3ED5C135.976B0326@cadence.com>
2003-05-30 17:12 ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8994A66FFE9ED411BD200008C75D64FD4BD481@belmail02.mis.gtech.com \
    --to=pascal.stenuit@gtech.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).