On Thu, Feb 20, 2003 at 12:00:43AM -0600, Omon Edeki wrote:
> 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.
That's a bad plan by design. You should use SIGKILL only as last resort.
Instead you chould start sending SIGHUP to all processes of the user,
wait a few seconds, send SIGTERM, wait another few seconds and send
SIGKILL finally.
> An x server (?) is still running somewhere in the background,
The best approach is of course just to terminate the X11 server. But you
must *not* use SIGKILL which would leave the console in a garbled state.
Use SIGTERM instead.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel