I got it to work.THANK YOU Thomas Omon Edeki [EMAIL PROTECTED] www.cs.utexas.edu/users/omon
"Never.Never Give Up." On Thu, 20 Feb 2003, Thomas Zander wrote: > You don't want to do that like this, it won't ask the user to correctly > save his work. > kde has a mechanism to do that on the WM level, I bet GNOME has as well. > > Become the same user, set your DISPLAY var and do > dcop kdesktop kdesktop logout > Or similar. > > In the other case; do a > ps auxf > this gives you a tree (forrest) view of the processes; just kill the top level > X and all children will follow. > > On Thu, Feb 20, 2003 at 12:00:43AM -0600, Omon Edeki wrote: > > Dear all, > > I am desperately trying to write a program to log out a user from a linux > > KDE/GNOME X window session.In trying to do this, I am killing all the > > users' processes using kill(pid_t pid, SIGKILL) to all the users > > processes. The user's processes actually do get killed but Xwindows > > refuses to completely die out. An x server (?) is still running somewhere > > in the background, and I WANT to completely stop it so that another user > > can have a chance to login and run X windows. > > > > Basically I amtrying to log out a user from an Xsession.Are there any > > available signals that X windows catches that makes it to shutdown > > correctly? Is there some order of how you kill the x processes? I am doing > > a linear sequential traversal of the users processes and killing them all. > > Is this the right approach to take? > > > > Omon Edeki > > [EMAIL PROTECTED] > > www.cs.utexas.edu/users/omon > > > > "Never.Never Give Up." > > > > _______________________________________________ > > Devel mailing list > > [EMAIL PROTECTED] > > http://XFree86.Org/mailman/listinfo/devel > > -- > Thomas Zander > _______________________________________________ > Devel mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/devel > _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
