This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Xwin shutdown command line option


On Wed, 22 Sep 2004, Phil Betts wrote:

> Alexander Gottwald wrote:
> > On Wed, 22 Sep 2004, Vijay Kiran Kamuju wrote:
> >
> >> Hi
> >>
> >> is there a way to shutdown the Xserver from command line
> >
> > No.
>
> This should work:
>
> kill -9 `pidof /usr/X11R6/bin/XWin`
>
> Note that case is important here.  It might be better to use a
> different signal, SIGHUP seems like the most polite option, but I
> don't know if XWin supports this.
>
> Phil Betts

This only works if the "sysvinit" package is installed, and it will kill
*all* XWin processes, which is not what the OP wanted.

FWIW, it might be better to add the capability to XWin.exe to be queried
about which DISPLAY it's serving (via IPC of some sort).  That way, one
could write a small routine that iterates over all the XWin processes and
sends a signal to the one that's running a given DISPLAY.  Or is there
already a way for an X client to send a shutdown message to the X server
whose DISPLAY it's running on?

To the OP: you may be able to quickly kill the correct XWin process by
switching to an X window on that display and issuing a Ctrl-Alt-Backspace
(if XWin was started with a -unixkill option).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]