#193 Figure out which session ID to get for macos process58 probe

open
nobody
3
2011-12-14
2011-12-14
No

See

http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPMultipleUsers/Concepts/SystemContexts.html#//apple_ref/doc/uid/20002208-107498

for the documentation that distinguishes, in particular the boxed note. It says the two are used for different purposes, but doesn't say what those purposes are. You can get one session ID using the getsid(pid_t) function; getting the other requires using the "Security Framework" and is obtained via SessionGetInfo(). The latter function can't be used to get the session ID of a different process.

The basic question is which session ID should be collected. And does there need to be any clarifying documentation about this?

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks