Credentials.getUnixPid

Tries to get the UNIX process identifier from credentials. This method is only available on UNIX platforms.

This operation can fail if gio.Credentials is not supported on the OS or if the native credentials type does not contain information about the UNIX process ID.

class Credentials
pid_t
getUnixPid
()

Return Value

Type: pid_t

The UNIX process ID, or -1 if error is set.

Throws

GException on failure.

Meta

Since

2.36