public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: reset/terminate problems; preventing multiple XWin instance
@ 2004-03-04 12:57 cygwinx2eran
  2004-03-04 15:05 ` Harold L Hunt II
  0 siblings, 1 reply; 4+ messages in thread
From: cygwinx2eran @ 2004-03-04 12:57 UTC (permalink / raw)
  To: cygwin-xfree

On 2004-03-04 13:12, Alexander Gottwald wrote:

> if ! xdpyinfo >/dev/null 2>&1; then

Cygwin's xdpyinfo waits for 6 second before giving up. A couple of days
ago I posted an alternative solution using netstat, which doesn't have
this delay. Both suffer from race conditions, which are quite likely to
occur in practice -- say, a user clicks his "Cygwin xterm" icon twice in
succession to open two xterms, and as a result gets two XWin instances.

  Eran


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: reset/terminate problems; preventing multiple XWin instance
@ 2004-03-04 12:03 cygwinx2eran
  2004-03-04 12:12 ` Alexander Gottwald
  0 siblings, 1 reply; 4+ messages in thread
From: cygwinx2eran @ 2004-03-04 12:03 UTC (permalink / raw)
  To: cygwin-xfree

On 2004-03-04 18:02, Takuma Murakami wrote:

> > Perhaps there should be a switch that says "if the display already
> > exists, exit silently".
> I agree.  We should have an option like "-silent" or "-quiet".

That's not quite it -- I want to ignore a "display already exists"
error, but if some other fatal error prevents XWin from loading I want
to know about it (say, via the dialog box).


> Let's suppose Cygwin/X has -silent option as above: then I
> think startxwin.bat with -silent option is sufficient for your
> purpose.  It will start a server (which silently fails if there
> is the other) and then start some favorite applications.

This would spawn new instances of my favorite applications every time I
open an xterm. Not a pretty sight.

  Eran


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-04 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-04 12:57 reset/terminate problems; preventing multiple XWin instance cygwinx2eran
2004-03-04 15:05 ` Harold L Hunt II
  -- strict thread matches above, loose matches on Subject: below --
2004-03-04 12:03 cygwinx2eran
2004-03-04 12:12 ` Alexander Gottwald

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