Re: Why does the display constantly increment?
Re: Why does the display constantly increment?
- Subject: Re: Why does the display constantly increment?
- From: "Philip J. Schneider" <email@hidden>
- Date: Wed, 23 Feb 2011 17:55:39 -0800
In normal/default usage, the display number should be "0" at every launch
In general, the program that opens a port should close/unbind it on
exit. But, after a process is destroyed by the operating system, its
resources *ought* to be harvested, including open ports...hmm...
I'd guess there's still a process with that port open, or something
in your workflow is resulting in an unexpected ordering of operations
that somehow causes the port to remain in use...
Try running your X11.app and a client, terminate them, and then
before trying again, type this at a terminal:
lsof -iTCP
That command will tell you what ports are in use, and by what process name/id.
- Philip
At 4:52 PM -0600 2/23/11, Kevin Veroneau wrote:
Hello,
Firstly, thank you for your last reply to my many questions.
Each time I launch X11.app, if I previously closed it, it
increments the display number. This makes it very difficult to
automate shell scripts on a remote host to target the X Server on
the Mac. I forward the X clients directly through TCP on a private
subnet, thus have no use for the encryption and/or compression of
SSH forwarding.
On the *NIX machine with the X clients, I place in the .profile
file, an export for DISPLAY to equal the IP and display number and
screen on my Mac. Since this is a MacBook, I am unable to put it to
sleep without first closing X11.app entirely(it just wakes back up
if X11.app is running). This makes the automated .profile during a
login to connect all my required X clients.
Is this due to a possible memory/port leak in X11.app? How does
X11.app allocate a display or check a previous display before
binding to the TCP port? After X11.app is closed normally via
Command-Q, does it unbind itself from the TCP port correctly? Does
X11.app increment display numbers for each successive launch as a
security feature?
I am using Mac OS X 10.6.6's X11.app, fully updated.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden