reset/terminate problems; preventing multiple XWin instance

cygwinx2eran@tromer.org cygwinx2eran@tromer.org
Thu Mar 4 12:57:00 GMT 2004


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



More information about the Cygwin-xfree mailing list