Re: Why does the display constantly increment?
Re: Why does the display constantly increment?
- Subject: Re: Why does the display constantly increment?
- From: Jeremy Huddleston <email@hidden>
- Date: Wed, 23 Feb 2011 18:57:02 -0800
On Feb 23, 2011, at 14:52, 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.
That shouldn't be the case. I just launched XQuartz.app and quit it. It created /tmp/.X0-lock and /tmp/.X11-unix/X0 on launch and removed them when it quit.
> 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.
Yeah, but it makes things a heck of a lot easier since you don't need to guess your $DISPLAY.
> 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.
I'm having a very difficult time parsing the above. I'm not sure what your machine being a MB has to do with not being able to goto sleep.
> Is this due to a possible memory/port leak in X11.app?
No.
> How does X11.app
> allocate a display or check a previous display before binding to the TCP
> port?
The TCP port is based on the display number. The display number it uses is the lowest available unlocked display (/tmp/.X*-lock)
> After X11.app is closed normally via Command-Q, does it unbind itself
> from the TCP port correctly?
Yes. By quitting.
> Does X11.app increment display numbers for
> each successive launch as a security feature?
Only if .X*-lock is there. It doesn't have a counter.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden