Re: logout and auto-login
Re: logout and auto-login
- Subject: Re: logout and auto-login
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 10 Dec 2001 11:26:03 +0100
On Sunday, December 9, 2001, at 12:51 PM, Jake wrote:
It is a security application. If it detects an anomaly, it is to
terminate
the current session and logout the user "gracefully by force". It
appears
that killing either the "loginwindow" or "WindowServer" does the job.
But
I can't seem to be able to get the pid of those process from within my
program without resorting to a shell scripts: getpgrp() doesn't yet
exist
in OSX, and I can't walk the process table because of permission issues.
(ps is suid). Any suggestions?
IMHO, the appropriate solution would be to send an AppleEvent to
LoginWindow.app to logout the user.
Yet I'm a bit dubitative to ever see a description on how to do this,
since it's the same issue that the one with the restart and shutdown
Apple events.
It looks like this is a feature that we are not allowed to use.