[ CCode ( has_construct_function = false , type = "PolkitSubject*" ) ]
public UnixSession.for_process_sync (int pid, Cancellable? cancellable = null) throws Error
Creates a new UnixSession for the process with process id pid.
This is a synchronous call - the calling thread is blocked until a reply is received. For the asynchronous version, see UnixSession.for_process.
| pid |
The process id of the process to get the session for. |
| cancellable |
A Cancellable or null. |
|
A UnixSession for |