Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logout and auto-login



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.


References: 
 >Re: logout and auto-login (From: Jake <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.