This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Checking if the X Server is running
- From: "Rodrigo Medina" <rodmedina at cantv dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Sun, 30 Sep 2007 14:06:07 -0400
- Subject: Re: Checking if the X Server is running
- Reply-to: rodmedina at cantv dot net
- Reply-to: cygwin-xfree at cygwin dot com
O. Olson wrote:
> Is there any way of checking if the X Server is
> currently running? Because if you try this again, it
> gives you a fatal error which does not crash your
> computer, but is a bit annoying to me.
>
When XWin starts it writes a lock file /tmp/.X11-unix/X0.
When XWin ends properly it deletes the file. You can use
such file in order to know if XWin is running.
bye
RM
--
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/