public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Kurt Franke <Kurt-Franke@web.de>
To: cygwin-xfree@cygwin.com
Subject: Re: CygwinX at MS Terminalserver?
Date: Fri, 13 Aug 2010 21:07:00 -0000	[thread overview]
Message-ID: <loom.20100813T125609-573@post.gmane.org> (raw)
In-Reply-To: <4C641B91.60504@dronecode.org.uk>

Jon TURNEY <jon.turney <at> dronecode.org.uk> writes:


> Where you may experience problems is if the X server crashes whilst being run 
> by an Administrator, and then a non-Adminstrator user tries to run X server 
> using the same display number, which will fail due being unable to remove the 
> stale lock file and unix socket.  Unfortunately, there is no obvious way to 
> fix that without introducing a security hole (not that it is known to be 
> secure anyhow)

Hi,

this problem could be handled.
Create a script which checks for existence of the PID written into the
file(s) /tmp/.X${DISPLAY_NUMBER}-lock and remove the Lockfile and also 
the Domainsocket for the same DISPLAY_NUMBER if the process doesn't exist. 
It is a good strategy to check for the string Xwin in the process command 
to ignore other processes which may got the same PID as the previous 
XServer process.
Either do this periodically in the script itself and start it via inittab 
or as a windows service, or run it via cron. Checking once a minute should 
be sufficient.

regards

kf




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


      parent reply	other threads:[~2010-08-13 11:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  7:31 Steffen Sledz
2010-08-12 16:07 ` Jon TURNEY
2010-08-13  8:23   ` Steffen Sledz
2010-08-13 10:39     ` Hermann-Josef Beckers
2010-08-13 11:15     ` Jon TURNEY
2010-08-16 10:14       ` Steffen Sledz
2010-08-27 16:32         ` Jon TURNEY
2010-09-20 14:21           ` Jon TURNEY
2010-09-20 14:26             ` [PATCH] os: Add -displayfd option Jon TURNEY
2010-09-20 14:27             ` [PATCH] Handle X server -displayfd option transparently Jon TURNEY
2010-08-13 21:07   ` Kurt Franke [this message]

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=loom.20100813T125609-573@post.gmane.org \
    --to=kurt-franke@web.de \
    --cc=cygwin-xfree@cygwin.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.
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).