This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: reset/terminate problems; preventing multiple XWin instance
- From: cygwinx2eran at tromer dot org
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 04 Mar 2004 14:59:26 +0200
- Subject: Re: reset/terminate problems; preventing multiple XWin instance
- Reply-to: cygwin-xfree at cygwin dot com
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